keyboardsurfer/Crouton

How to use in Fragment?

brunochichava opened this issue · 1 comments

Hi im trying to use in a Fragment.

First i get a activity from Fragment like this FragmentActivity act = this.getActivity();

and then i create a Crouton like this: Crouton.makeText(act, "Recaregado com sucesso", Style.ALERT).show();

but the app creshes at that point.

Please provide a stacktrace. Also at what stage of the lifecycle are you trying to access Crouton?