Note that there are some explanatory texts on larger screens.

plurals
  1. POLayer order of overlapping text and image in Android Listview
    primarykey
    data
    text
    <p>[Updated, as I apparently can't answer my own question yet: It's as simple as re-ordering the views. I put the TextView at the end, indicated layout_alignParentLeft="true", and it does the trick.]</p> <p>I have a typical ListView item description, with text and images (3) in each row.</p> <p>I noticed that the image (id="@+id/browse_item_row_icon") on the right side of the row was drawn on top of (over) the text.</p> <p>While not immediately what I wanted, I decided it would actually work, IF I could have that image <strong>behind</strong> the text instead of on top of it. This would allow me to display more text if necessary, and covering up part of the image will not impact usability.</p> <p>Is there a way to indicate above/below ordering of views?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TextView android:id="@+id/browse_item_row_text" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="24dp" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginRight="48dip" &gt; &lt;/TextView&gt; &lt;ImageButton android:id="@+id/browse_item_add_button" android:background="@drawable/ic_add_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true"&gt; &lt;/ImageButton&gt; &lt;ImageView android:id="@+id/browse_item_to_submenu" android:src="@drawable/expander_ic_minimized" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/browse_item_add_button" &gt; &lt;/ImageView&gt; &lt;ImageView android:id="@+id/browse_item_row_icon" android:src="@drawable/ic_default_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/browse_item_to_submenu" &gt; &lt;/ImageView&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    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.
 

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