listview OnItemClick listener not work in fragment

后端 未结 4 878
予麋鹿
予麋鹿 2020-12-18 07:51

I used listview in fragment but I used list onItemClick listener not working. My code below and how to perfect solution.

 public class StoreProf         


        
4条回答
  •  再見小時候
    2020-12-18 08:36

    whenever you list item contains something like button then this type of problem comes. you should use a view holder in you adapter class.

     private class ViewHolder{
               ImageButton imagebutton;
               TextView textView;        
    
             }
    

    use it in your getview method. hope this will work for you.

提交回复
热议问题