Всякий раз, когда я запускаю его, у меня нет ошибок. Но когда я нажимаю на мужскую моду под детским щелчком, он ничего не делает. Я хочу иметь возможность перейти к новому новому занятию, но это не так.
.addOnChildClickListener(new ExpandableListView.OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
navigationExpandableListView.setSelected(groupPosition, childPosition);
if (groupPosition == 0)
if (groupPosition == 1)
if (groupPosition == 2)
if (id == 0) {
Common.showToast(context, "Man's Fashion");
Intent intent = new Intent(MainActivity.this, test.class);
startActivity(intent);
} else if (id == 1) {
Common.showToast(context, "Woman's Fashion");
} else if (id == 2) {
Common.showToast(context, "Babies and Family");
} else if (id == 3) {
Common.showToast(context, "Health");
}
drawer.closeDrawer(GravityCompat.START);
return false;
}
});
navigationExpandableListView.expandGroup(2);
}