In your adapter, override this method.
@Override
public boolean isChildSelectable(int arg0, int arg1) {
return true;
}
On Wed, Oct 6, 2010 at 10:21 PM, Ganapathy.C <[email protected]> wrote:
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com
--
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