vendredi 16 août 2019

Expandable listView with checkboxes clicklistener

I'm new in android development.I have create a expandable listview with checkboxes and textViews. What I'm trying to implement is that on checking the checkboxes a toast should be displayed with the corresponding text from textView but I'm not able to do that.

This code below doesn't way ! Is there any other work.I have done research and I'm still not finding the answer to my query

 expandableListView.setOnChildClickListener(
                new ExpandableListView.OnChildClickListener() {
                    @Override
                    public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
                        Toast.makeText(getApplicationContext(), listData_H.get(groupPosition)+" - "
                                +listData_Ch.get(listData_H.get(groupPosition)).get(childPosition)
                                , Toast.LENGTH_SHORT).show();
                        return false;
                    }
                });




Aucun commentaire:

Enregistrer un commentaire