how to implement onchild click event in expandablelistview

expandableListView.ChildClick += (s, e) =>
{
Toast.MakeText(this, "Clicked:" + mAdapter.GetChild(e.GroupPosition, e.ChildPosition), ToastLength.Long).Show();
Intent intent;
switch (e.GroupPosition)
{
case 01:
intent = new Intent(this, typeof(Jojnews));
StartActivity(intent);
break;
case 01:
intent = new Intent(this, typeof(Joypolitics));
StartActivity(intent);
break;
case 02:
intent = new Intent(this, typeof(Joysports));
StartActivity(intent);
break;
case 03:
intent = new Intent(this, typeof(Joybusiness));
StartActivity(intent);
break;
case 04:
intent = new Intent(this, typeof(Joyentertainment));
StartActivity(intent);
break;
case 05:
intent = new Intent(this, typeof(Joyopinion));
StartActivity(intent);
break;
case 06:
intent = new Intent(this, typeof(Joylifestyle));
StartActivity(intent);
break;
```````` case 07:
intent = new Intent(this, typeof(Joytechnology));
StartActivity(intent);
break;
case 30:
intent = new Intent(this, typeof(Ghanawebnews));
StartActivity(intent);
break;
}
};
}

Answers

  • izhangizhang USMember, Xamarin Team Xamurai

    Are you saying that this current code does not work as expected?

  • EmmanuelMorrisonEmmanuelMorrison USMember ✭✭
    @izhang it works for only the first group members but want am looking for is the for the rest of the group n it's members
Sign In or Register to comment.