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

setListener not getting context inside fragment #80

Open
saifmunir65 opened this issue Apr 26, 2017 · 0 comments
Open

setListener not getting context inside fragment #80

saifmunir65 opened this issue Apr 26, 2017 · 0 comments

Comments

@saifmunir65
Copy link

in my case, i added cardstack inside my class which is extending from fragment. it does not allow me to pass context in mCardStack.setListener() that error says "setListener (cardstack.CardStack.cardEventListener) in CardStack cannot be applied to (android.content.Context)"
i tried by passing "getActivity()" , "getApplicationContext()", getActivity().getApplicationContext() but all in vein. kindly tell me what i am to do with this error.
thanks.

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