Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Text in ListView Is Cut Off
    text
    copied!<p>I know there are a lot of questions like this on the forums, but many cases are unique, so here goes.</p> <p>I have a custom list view that displays an "event" in different ways based on the application theme. The text for the title, alt-text and tags are all getting cut off (regardless of what the height is set to). Can you please help me fix the problem?</p> <p>The text is cut off in two of my 3 themes, and only on the actual device (not emulator).</p> <p>The code for each list item is very similar, so I'm attaching only one below (and will attach the others if needed); thanks.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;!-- ?android:attr/listPreferredItemHeight --&gt; &lt;LinearLayout android:id="@+id/viewrow_flags" android:orientation="vertical" android:layout_width="36px" android:layout_height="80px" android:layout_marginRight="6dip"&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="0dip" android:layout_weight="1" android:layout_height="fill_parent"&gt; &lt;TextView android:id="@+id/viewrow_toptext" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1" android:gravity="center_vertical" android:textColor="#00ccFF" android:textSize="6pt" android:paddingBottom="1dip"/&gt; &lt;TextView android:layout_width="fill_parent" android:gravity="center_vertical" android:layout_height="fill_parent" android:layout_weight="1" android:id="@+id/viewrow_bottomtext" android:textColor="#0066FF" android:singleLine="true" android:textSize="6pt" android:paddingBottom="1dip"/&gt; &lt;TextView android:layout_width="fill_parent" android:gravity="center_vertical" android:layout_height="fill_parent" android:layout_weight="1" android:id="@+id/viewrow_tagtext" android:textColor="#0066FF" android:singleLine="true" android:textSize="6pt" android:paddingBottom="1dip"/&gt; &lt;/LinearLayout&gt; &lt;View android:id="@+id/viewrow_anchor" android:layout_width="0sp" android:layout_height="60dip" android:layout_gravity="center" /&gt; &lt;TextView android:id="@+id/viewrow_dayview" android:layout_width="60sp" android:layout_height="80px" android:gravity="center" android:paddingLeft="6dip" android:paddingTop="12dip" /&gt; &lt;/LinearLayout&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload