I am playing around with this example. http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html
I cannot figure
You should specify location of items in expandable list like this
listView.setOnChildClickListener(new OnChildClickListener()
{
@Override
public boolean onChildClick(ExpandableListView parent, View v, int group_position, int child_position, long id)
{
if(group_position==0 && child_position==0){
TryFragment secondFragment = (TryFragment) SampleActivity.this.getFragmentManager().findFragmentById(R.id.tryFragment);
secondFragment.getView().setVisibility(View.VISIBLE);
} else if(group_position==2 && child_position==2){
TryFragment secondFragment = (TryFragment) SampleActivity.this.getFragmentManager().findFragmentById(R.id.tryFragment);
secondFragment.getView().setVisibility(View.VISIBLE);
}
return false;
}
});