B4A Library [Class] Croutons

Croutons is a UI component used to show short messages to the user. It can be used as an alternative to ToastMessage mainly because Toasts do not maintain context (for e.g. a toast for a different activity will show on the wrong activity).

Idea taken from Cyril Mottier: Cyril Mottier » The making of Prixing #4: in-layout notifications

I posted a demo a while ago here: Croutons Demo

I didnt get time to clean up the code. If someone improves on this and fixes bugs, kindly feed back to this thread.

This class requires the Animation and Reflector library.

Bugs:
setTypeface does not work.
 

Attachments

  • CroutonExample.zip
    163.9 KB · Views: 497
  • 15113d1356228836-croutons-demo-alternative-toasts-screenshot_2012-12-23-02-05-04.png
    15113d1356228836-croutons-demo-alternative-toasts-screenshot_2012-12-23-02-05-04.png
    58.6 KB · Views: 810
  • 15114d1356228840-croutons-demo-alternative-toasts-screenshot_2012-12-23-02-05-29.png
    15114d1356228840-croutons-demo-alternative-toasts-screenshot_2012-12-23-02-05-29.png
    58.7 KB · Views: 753
Top