ExpandableListView OnChildClickListener not work

前端 未结 3 1329
既然无缘
既然无缘 2020-12-17 10:28

i have my problem with my Expandable ListView on my Android Application

this my code

package proyek.akhir;
import android.app.ListActivity;
import an         


        
3条回答
  •  囚心锁ツ
    2020-12-17 11:12

    You have to change return value is true instead of false. Make your child view selectable.

    Use this:

      @Override
            public boolean isChildSelectable(int groupPosition, int childPosition) {
                return true;
            }
    

    Instead Of:

    @Override
            public boolean isChildSelectable(int groupPosition, int childPosition) {
                return false;
            }
    

提交回复
热议问题