Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Follow publication

Generic💎🔮⛏ toast library

--

Hey there👋, I have designed this beautiful generic💎🔮⛏ toast library for android(java & kotlin)

Generic toast with title and message
Generic toast with message
Generic toast demo

Project Dependency

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

Module Dependency

dependencies {	  implementation 'com.github.smdi:GenericToast:3.0.0'
}

Implementation with title and message

GenericToast.
showToast(activity, //activity
"Success", //title
"Connection established", //message
GenericToast.LENGTH_SHORT, //duration
GenericToast.SUCCESS, //type
GenericToast.DARK, //mode
R.font.abeezee_regular, //title font
GenericToast.DEFAULT_FONT)); //message font

Implementation with message

GenericToast.
showToast(activity, //activity
"Connection established", //message
GenericToast.LENGTH_SHORT, //duration
GenericToast.SUCCESS, //type
GenericToast.DARK, //mode
R.font.abeezee_regular, //title font
GenericToast.DEFAULT_FONT)); //message font

Default font

If you want you use system default font, pass GenericToast.DEFAULT_FONT as parameter

GenericToast.DEFAULT_FONT

Five✋ types

GenericToast.SUCCESS
GenericToast.ERROR
GenericToast.WARNING
GenericToast.INFO
GenericToast.CUSTOM

Two✌ modes

GenericToast.LITE
GenericToast.DARK

Two✌ dedicated durations⏰

GenericToast.LENGTH_SHORT       //2 seconds
GenericToast.LENGTH_LONG //4 seconds

For Queries & Issues: https://github.com/smdi/GenericToast

Follow my work on GitHub: https://github.com/smdi

Follow my work on Behance: https://www.behance.net/aihamza1438ae7

Follow me on Linkedin: https://www.linkedin.com/in/737ba2237/

YouTube Channel: https://www.youtube.com/channel/UCPXSt8suTFVoB1-5lPZS5hA

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Bootcamp
Bootcamp

Published in Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Mohammad Imran Shaik
Mohammad Imran Shaik

Written by Mohammad Imran Shaik

Developer ❄️| Designer 🎨| Innovator 🌈| Tech Instructor👨‍🏫

No responses yet

Write a response