Android Crouton library implementing Custom Views

1.4k views Asked by At

Is it possible to completely change the Layout of a Crouton? I've seen a few of posts about changing the view which actually came down to just wanting to change the font but nothing about actually changing the layout.

I've already got croutons displaying nicely and been playing about with styles but couldn't quite find how to do what I want. Basically what I want is something like this, which dismisses the crouton when clicking the cross. So it's just a textview and a button!

I did see this within the Crouton Library but couldn't really see how to use it for my purpose.

public static Crouton make(Activity activity, View customView) {
return new Crouton(activity, customView);
}
1

There are 1 answers

0
Amit Prajapati On

Follow this link you may get answer

Another Link

His idea is to show in-app notifications (not to be confused with Android’s persistent notifications) at a fixed place of the Activity to which the notification is relevant. This way the context of the notification is always correct