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

Sending References to the Holder #11

Closed
Rohail opened this issue Jan 19, 2015 · 2 comments
Closed

Sending References to the Holder #11

Rohail opened this issue Jan 19, 2015 · 2 comments

Comments

@Rohail
Copy link

Rohail commented Jan 19, 2015

How to send custom objects to holder e.g reference to my Fragment object so that i can call public methods from within the Holder, any way to achieve that ?
Sorry for the inconvenience :(

@StanKocken
Copy link
Owner

It's not a good way to reference your Fragment within your Holder.
You have many way to call method of your Fragment from the Holder. For example you can call "getContext()" from the Holder to get your Activity that contains your Fragment, then call your Fragment from this Activity.

@Rohail
Copy link
Author

Rohail commented Jan 19, 2015

hmm Ok, thanks for the quick reply, gonna go do just that
👍

@Rohail Rohail closed this as completed Jan 19, 2015
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