Show Custom TOAST

Overview

Show Custom TOAST

Alt text

Alt text

Dependencies

Add it in your root build.gradle at the end of repositories:

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

Add the dependency :

implementation 'com.github.abuanzeh:AnzehLibrary:1.0.5'

Example on Success Toast

   ToasterMessage.Builder()  
        //set context  
        .setContext(context)
        //set Your Message 
        .setMessage("YOUR MESSAGE HERE")
        //set custom background color default is green color  
        .setSuccessBackgroundColor(R.color.cusom_color)
        //set custom corner radius if you want  
        .setCornerRadius(50)
        //set success custom icon  
        .setSuccessIcon(R.drawable.ic_check)
        //Where to display the message Gravity.TOP or Gravity.BOTTOM  
        .setGravityOfMessage(Gravity.TOP)
        //Message display time Toast.LENGTH_SHORT or Toast.LENGTH_LONG 
        .setDuration(Toast.LENGTH_SHORT)
        //set Text Color 
        .setTextColor()
        .build()  
        .showMessage()

Example on Error Toast

    ToasterMessage.Builder()  
        //set context  
        .setContext(context)
        //set Your Message 
        .setMessage("YOUR MESSAGE HERE")
        //set custom background color default is green color  
        .setFieldBackgroundColor(R.color.cusom_color)
        //set custom corner radius if you want  
        .setCornerRadius(50)
        //set success custom icon  
        .setFieldIcon(R.drawable.ic_check)
        //Where to display the message Gravity.TOP or Gravity.BOTTOM  
        .setGravityOfMessage(Gravity.TOP)
        //Message display time Toast.LENGTH_SHORT or Toast.LENGTH_LONG 
        .setDuration(Toast.LENGTH_SHORT)
        //set Text Color 
        .setTextColor()
        .build()  
        .showMessage()
You might also like...
 Astronomy Picture of the Day Nasa(APOD) media listing and show picture details.
Astronomy Picture of the Day Nasa(APOD) media listing and show picture details.

Astronomy Picture of the Day Nasa(APOD) media listing and show picture details. Built to learn and use of Latest Android development libs using Coroutines, Flow, Dagger-Hilt, Architecture Components, MVVM, Room, Retrofit, Material Guideline)

A movie & TV show exploration app that implements MVVM design pattern by following the clean architecture principles, using TMDB API.
A movie & TV show exploration app that implements MVVM design pattern by following the clean architecture principles, using TMDB API.

🎬 Movie App 📺 A movie & TV show exploration app that implements MVVM design pattern by following the clean architecture principles, using TMDB API.

A project to show the best way to build an Android app on 2022 (by me).
A project to show the best way to build an Android app on 2022 (by me).

Hello Architecture I create this project to show what's for me the best way to build an Android app on 2022. Architecture I use this diagram as and id

Android Custom View Accessibility

CustomFanController - Solution Code Creates a circular fan control dial that offers multiple selections marked by numeric indicators: 0 for off, 1 for

A simple time second selector seek bar custom made
A simple time second selector seek bar custom made

A simple time second selector seek bar custom made How to To get a Git project into your build: Step 1. Add the JitPack repository to your build file

A custom view for rating which easy to make and use, but function is excellent
A custom view for rating which easy to make and use, but function is excellent

QRatingView A custom view for rating which easy to make and use, but function is excellent Effect Picture Properties declare-styleable name="QRat

Ticker - A custom time picker library
Ticker - A custom time picker library

Ticker A simple spinner time picker library Adding dependencies: if your gradle

Custom plugin for private minecraft server

Custom Plugin Custom plugin for private minecraft server. Requirements Java 1.17 PaperMC 1.18 (Minecraft 1.18) Features Cancels Creeper griefing Build

A custom OTP view to enter a code usually used in authentication
A custom OTP view to enter a code usually used in authentication

A custom view to enter a code usually used in authentication. Different types of OTPViews. Easy to use and configure your own view and character of OTP using all the attributes.

Releases(1.0.5)
Owner
Mohammed AbuAnzeh
Hi , I am Mohammed Android Developer with 2 years Experience
Mohammed AbuAnzeh
AppD-Task1 - A simple basic app with use of card view and toast

AppD-Task1 Made a simple basic app with use of card view and toast. Screenshots

Akshat Singh 0 Jan 29, 2022
This Kotlin Multiplatform library is for accessing the TMDB API to get movie and TV show content. Using for Android, iOS, and JS projects.

Website | Forum | Documentation | TMDb 3 API Get movie and TV show content from TMDb in a fast and simple way. TMDb API This library gives access to T

Moviebase 37 Dec 29, 2022
An Online Meme Sharing app with swipeable vidoes, user can like, share different videos, each viewpager item has one video to show.

MemesSharing An Online Meme Sharing app with swipeable vidoes, user can like, share different videos, each viewpager item has one video to show. 1. Fl

Vikas Bajpayee 13 Aug 6, 2022
myMaps displays a list of maps, each of which show user-defined markers with a title, description, and location.

My Maps Trevor Carrell myMaps displays a list of maps, each of which show user-defined markers with a title, description, and location. The user can a

null 0 Nov 1, 2021
Client App to show the information of the searched Pokemon

PokemonSearch Client App to show the information of the searched Pokemon. It uses Pokemon SDK to show all the information. How to use it. Set up Take

kunalsale 0 Nov 21, 2021
A simple App which fetches data from NewYork times api and show news to the user

Stay-TheNewsApp This is a simple java app, which fetches data from NewYork times api and show news to the user, News can be seen from various categori

Gautam Garg 0 Dec 7, 2021
BooksApp - Show the books list from an API with using retrofit2, picasso and JSON libraries

BooksApp Books App Show the books list from an API with using retrofit2, picasso

null 0 Jan 3, 2022
Demo to show ongoing notification on Huawei P50 Pocket

Bali Demo Demo code to show different ongoing notification types on the Huawei P50 Pocket external screen. Currently the external screen provides THRE

minkiapps 0 Jan 14, 2022
A basic application to show list of recently posted questions on stackoverflow

android-stackexchange-api-demo A basic application to show list of recently posted questions on stackoverflow Main screen This is the main screen whic

null 0 Mar 14, 2022