Note that there are some explanatory texts on larger screens.

plurals
  1. POAdapterView.OnItemClickListener() is not working in my customAdapter
    primarykey
    data
    text
    <p>please refer this image <a href="https://www.dropbox.com/s/6zoj9lw10oc07xa/to_dropbox.png" rel="noreferrer">https://www.dropbox.com/s/6zoj9lw10oc07xa/to_dropbox.png</a> </p> <p><strong><code>what i am doing :</code></strong> i am creating a list_view , in which i am adding custom adapter .</p> <p><strong><code>what i am using :</code></strong> i am using , listView , customAdapter , menuitem . <code>listView</code> : single listview in whole application <code>customadapters</code> : 3 custom adapters <code>menuitem</code> : 1 </p> <p><strong><code>How i am implementing :</code></strong> i have data base from which things are fetched properly , and from that database i have entered these values in my listview by filtering that data in 3 types : 1st adapter_type is entered by default ( in onCreate ) .</p> <pre><code>adapter = new Adapter_forCompletedReminder( array_today_title , this) ; ls.setAdapter(adapter) ; </code></pre> <p>2nd adapter_type is entered in my listview by pressing menuitem . </p> <pre><code>adapter = new Adapter_forCompletedReminder( array_past_2_day_title , this) ; ls.setAdapter(adapter) ; </code></pre> <p>3rd adapter_type is entered in my listview by pressing menuitem . </p> <pre><code>adapter = new Adapter_forCompletedReminder( array_other_day_title , this) ; ls.setAdapter(adapter) ; </code></pre> <p><strong><code>what is my problem :</code></strong> this code is added inside onCreate() method .</p> <pre><code>ls.setOnItemClickListener( new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView&lt;?&gt; adapterView , View view , int position ,long arg3) { Log.i("Item clicked","tushar:itemclicked") ; } }); </code></pre> <p>when i have tried to implement AdapterView.OnItemClickListener() , it is not working ... code is not crashing ( no red lines in log cat ). code is not executing in the click of llist_view_element</p> <p>thanks , for reading my problem .</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.
    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