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

Display the Android-AppMsg (crouton) for the an individual nested fragment #16

Closed
LOG-TAG opened this issue Nov 1, 2013 · 1 comment

Comments

@LOG-TAG
Copy link

LOG-TAG commented Nov 1, 2013

I'm trying to display the crouton on child fragment it's not displaying anything

//=================================

//activity-->viewpager fragment--->childfragment /calling crouton here/

MeetingFragment f = new MeetingFragment();

AppMsg.makeText(f.getActivity(), "Hello AppMsg",AppMsg.STYLE_ALERT,(ViewGroup) f.getView()).show(); //failed in nested fragment

Crouton.makeText(getActivity(), "Hello Crouton", Style.INFO,(ViewGroup) getView()).show(); //failed in nested fragment

//=================================

http://stackoverflow.com/questions/14760042/appmsg-crouton-library-support-for-fragments-urgent

any solutions to make it available for fragment or child (nested) fragment ?!! or this will still display the crouton for the activity, not for an individual fragment?

@LOG-TAG
Copy link
Author

LOG-TAG commented Nov 5, 2013

Crouton.makeText( HelloworldFragment.this.getActivity(),getString(R.string.hello), Style.ALERT).show(); is the solution I found!

@LOG-TAG LOG-TAG closed this as completed Nov 5, 2013
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