You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the adapter I write like this
((RelativeLayout)convertView.findViewById(R.id.rl_item)).setOnClickListener(new View.OnClickListener() { @OverRide
public void onClick(View v) {
MainActivity ma = (MainActivity)context;
ma.addMainContent(new TopicsFragment(nodes.get(position).name, nodes.get(position).getUrl(), ma.getPullToRefreshAttacher()));
}
});
public void addMainContent(Fragment fragment){
getSupportFragmentManager().beginTransaction()
.replace(R.id.container, fragment).addToBackStack(null)
.commit();
}
The UI come to a mess when I pressed back ,Is this a bug?
The text was updated successfully, but these errors were encountered:
In the adapter I write like this
((RelativeLayout)convertView.findViewById(R.id.rl_item)).setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
MainActivity ma = (MainActivity)context;
ma.addMainContent(new TopicsFragment(nodes.get(position).name, nodes.get(position).getUrl(), ma.getPullToRefreshAttacher()));
}
});
The UI come to a mess when I pressed back ,Is this a bug?
The text was updated successfully, but these errors were encountered: