Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The UI come to a mess when I pressed back #80

Open
veryyoung opened this issue May 13, 2014 · 0 comments
Open

The UI come to a mess when I pressed back #80

veryyoung opened this issue May 13, 2014 · 0 comments

Comments

@veryyoung
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant