Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid ListViewItem layout with the button
    primarykey
    data
    text
    <p>I am quite new to Android. I want to add two buttons in listview item template at the bottom right corner.</p> <p>Right now I have such layout: <img src="https://i.stack.imgur.com/m8Nwu.png" alt="existing layout"></p> <p>And the code:</p> <blockquote> <p></p> <pre><code>&lt;ImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:layout_alignParentTop="true" android:layout_marginRight="6dip" android:src="@drawable/ic_launcher" /&gt; &lt;TextView android:id="@+id/secondLine" android:layout_width="fill_parent" android:layout_height="26dip" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_toRightOf="@id/icon" android:ellipsize="marquee" android:singleLine="true" android:text="Details" android:textSize="12sp" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/secondLine" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" android:layout_toRightOf="@id/icon" android:gravity="center_vertical" android:text="Test title" android:textSize="16sp" /&gt; </code></pre> <p></p> </blockquote> <p>What I want to achieve is to add two button in the bottom right corner, something like this:</p> <p><img src="https://i.stack.imgur.com/A2vM2.png" alt="expected"></p> <p>I also tried to put <code>RelativeLayout</code> into <code>LinearLayout</code> and then add one more child <code>LinearLayout</code> with the button aligning it horizontaly, but listview item row doesn't show them at all.</p>
    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