Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make an image easier to click?
    primarykey
    data
    text
    <p>I placed an image in each ListView Item at the right side,In the layout xml,I set its width and length as 20dip ,kind of small,and I find it is hard to click at it cause the image only occupied 20*20 dip,I hope the length of it doesn't change,while its height full filling the parent, I tried :</p> <pre><code> android:layout_width="20dip" android:layout_height="fill_parent" </code></pre> <p>but it doesn't work.</p> <p>Below is my xml:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/item" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:padding="6dip" android:background="#FFFFFF"&gt; &lt;ImageView android:id="@+id/avatar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6dip" android:src="@drawable/default_happy_face" /&gt; &lt;RelativeLayout android:orientation="vertical" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_toRightOf="@id/avatar" android:layout_toLeftOf="@+id/optionImg"&gt; &lt;!-- some stuff unrelated--&gt; &lt;/RelativeLayout&gt; &lt;!-- v Pay attention here v --&gt; &lt;ImageView android:id="@+id/optionImg" android:layout_width="20dip" android:layout_height="fill_parent" android:layout_marginLeft="15dip" android:paddingLeft="5dip" android:adjustViewBounds="true" android:background="@drawable/option_normal" android:layout_alignParentRight="true" android:layout_centerVertical="true"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>If you have carefully watch the twitter client for Android,you will find that the image at right side of each ListView Item is quite easy to click (even you have not click on the image but say for example on top of the button). I want to know how to do that.</p> <p><a href="http://www.freeimagehosting.net/uploads/889d10c435.png" rel="nofollow noreferrer">twitter image http://www.freeimagehosting.net/uploads/889d10c435.png</a></p> <p>Any one? any help? </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