Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove ID of item clicked in list view
    text
    copied!<pre><code>| Icon(image) | Title(text) | cross(image) | | | Description(text)| | | | | coupon(image) | </code></pre> <p>Its a list view. Here i want to get id of different items when clicked separately in list view like cross, coupon, icon is clicked then i will get their id... I'm a newbie...Please help me out....</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;ImageView android:id="@+id/list_item_iv_icon" android:layout_width="100dp" android:layout_height="100dp" android:contentDescription="@string/app_name" android:paddingLeft="10dp" android:paddingRight="10dp" /&gt; &lt;ImageView android:id="@+id/list_item_iv_icon_cross" android:layout_width="30dp" android:layout_height="30dp" android:layout_alignParentRight="true" android:clickable="true" android:contentDescription="@string/app_name" android:src="@drawable/cross_selector" /&gt; &lt;TextView android:id="@+id/list_item_tv_title" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_toRightOf="@+id/list_item_iv_icon" android:gravity="left" android:textColor="#CC0033" android:textIsSelectable="false" android:textSize="20sp" /&gt; &lt;TextView android:id="@+id/list_item_tv_desc" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/list_item_tv_title" android:layout_toRightOf="@+id/list_item_iv_icon" android:gravity="left" android:textColor="#3399FF" android:textIsSelectable="false" android:textSize="14sp" /&gt; &lt;ImageView android:id="@+id/list_item_iv_type" android:layout_width="100dp" android:layout_height="30dp" android:layout_alignBottom="@id/list_item_iv_icon" android:layout_alignParentRight="true" android:contentDescription="@string/app_name" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I know how to get id of the clicked list. i want to know is how to get item id of a clicked item in list.</p>
 

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