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

clicklistner on pager #56

Closed
GitEliteNovice opened this issue Feb 8, 2017 · 2 comments
Closed

clicklistner on pager #56

GitEliteNovice opened this issue Feb 8, 2017 · 2 comments

Comments

@GitEliteNovice
Copy link

GitEliteNovice commented Feb 8, 2017

how to get the data of fragment from view pager. I tried to set onClicklistener in fragment onCreateview like this

textViewPosition.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        Toast.makeText(getActivity(),textViewPosition.getTag().toString(),Toast.LENGTH_LONG).show();
    }
}); 

but not working,please help....
Thanks in advance

@ToxicBakery
Copy link
Owner

duplicate of #45

@GitEliteNovice
Copy link
Author

thanks now its working

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

2 participants