This is my code but onChildClick only not working...

listView.setOnChildClickListener(new
ExpandableListView.OnChildClickListener() {
                         @Override
                         public boolean onChildClick(ExpandableListView parent,
                                         View v, int groupPosition, int 
childPosition,
                                         long id) {
                                 Toast.makeText(homepage.this, "Child Clicked",
Toast.LENGTH_LONG);

                                 return false;
                         }
                 });

                 //Group Click Listner
                 listView.setOnGroupClickListener(new OnGroupClickListener(){

                         @Override
                         public boolean onGroupClick(ExpandableListView arg0, 
View arg1,
                                         int arg2, long arg3) {
                                 System.out.println("Group Clicked...");
                                 // TODO Auto-generated method stub

                                 return false;
                         }

                 });

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to