Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to prevent that the TextViews Content goes over the edge
    primarykey
    data
    text
    <p>I have a simple ListView:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/overvieList" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; </code></pre> <p>and this layout for the ListView items:</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="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;GridLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:columnCount="2" &gt; &lt;ImageView android:id="@+id/overviewItemImage" android:layout_width="75dp" android:layout_height="75dp" android:layout_column="0" android:layout_gravity="left|top" android:layout_marginRight="5dp" android:layout_row="0" android:src="@drawable/ic_launcher" /&gt; &lt;GridLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_column="1" android:layout_gravity="left|top" android:layout_row="0" android:layout_marginLeft="3dp" android:layout_marginRight="5dp" android:columnCount="1" android:rowCount="3" &gt; &lt;TextView android:id="@+id/overviewItemHeader" android:layout_column="0" android:layout_gravity="left|top" android:layout_row="0" android:text="Large Text" android:textAppearance="?android:attr/textAppearanceMedium" /&gt; &lt;TextView android:id="@+id/overviewItemCategory" android:layout_column="0" android:layout_gravity="left|top" android:layout_row="1" android:text="Small Text" android:textAppearance="?android:attr/textAppearanceSmall" android:textSize="10sp" android:textStyle="italic" /&gt; &lt;TextView android:id="@+id/overviewItemText" android:layout_column="0" android:layout_gravity="left|top" android:layout_row="2" android:text="Small Text" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;/GridLayout&gt; &lt;/GridLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>Now i use a modified ArrayAdapter to fill the ListView. </p> <p>ok that works.</p> <p>But how can I prevent it that the TextViews Content (on the right) goes over the edge??</p> <p><img src="https://i.stack.imgur.com/cz6S8.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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