<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wake Up Sun &#187; textview</title>
	<atom:link href="http://www.wakeupsun.com/tag/textview/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wakeupsun.com</link>
	<description>Developer - mobile applications and games - Android and iOS</description>
	<lastBuildDate>Fri, 14 Feb 2014 10:14:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Android Tips: cut textview to see &#8216;&#8230;&#8217; (ellipsis)</title>
		<link>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/</link>
		<comments>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/#comments</comments>
		<pubDate>Thu, 03 Oct 2013 16:16:54 +0000</pubDate>
		<dc:creator>WakeUp Sun</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android tips]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[ellipsis]]></category>
		<category><![CDATA[textview]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wakeupsun]]></category>

		<guid isPermaLink="false">http://www.wakeupsun.com/?p=230</guid>
		<description><![CDATA[Android tips: cut textview and add ellipsis Single line Add android:ellipsize=&#8221;end&#8221; in the properties of the texview. If you want your text on one line, add android:singleLine=&#8221;true&#8221;. Example: &#60;TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Text to cut because it is too long" android:ellipsize="end" &#8230; <a href="https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Android tips: cut textview and add ellipsis</h1>
<h2>Single line</h2>
<p>Add <strong>android:ellipsize=&#8221;end&#8221;</strong> in the properties of the texview.</p>
<p>If you want your text on one line, add <strong>android:singleLine=&#8221;true&#8221;</strong>.</p>
<p>Example:</p>
<pre>&lt;TextView
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="Text to cut because it is too long"
  android:ellipsize="end"
  android:singleLine="true"
/&gt;</pre>
<h2>Multi lines</h2>
<p>If your textview will be on 2 lines for example, add<span id="more-230"></span> android:maxLines=&#8221;2&#8243; in your textview properties.</p>
<p>Example:</p>
<pre>&lt;TextView
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="Text to cut because it is too long but I want it on 2 lines"
  android:ellipsize="end"
  android:maxLines="2"
/&gt;</pre>
<p>I hope it helps,</p>
<p>WakeUp Sun</p>
]]></content:encoded>
			<wfw:commentRss>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
