Giter VIP home page Giter VIP logo

rahul7400 / customizable-toast-android-library Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 521 KB

InstagramToastify is a lightweight and customizable Android library for creating beautiful and interactive toast notifications inspired by Instagram's sleek and user-friendly design. Elevate your application's user experience by effortlessly incorporating these eye-catching toasts into your project.

License: Apache License 2.0

Kotlin 45.52% Java 54.48%
android android-app android-application android-library android-toast android-toastmessage toast-notifications intoast instagram-tool kotlin

customizable-toast-android-library's Introduction

Instagram Toastify Android❤

A simple customizable toast for android developers.

Key Features:

🚀 Easy Integration: Seamlessly integrate Instagram-style toasts into your web app with just a few lines of code.

🎨 Customizable: Customize the appearance, animations, and behavior of toasts to match your project's branding and style.

⏱️ Timed or Manual Control: Display toasts for a specific duration or allow users to dismiss them manually.

📸 Rich Content: Embed images, icons, and interactive elements within your toasts for informative and engaging notifications.

🔄 Callbacks: Implement callback functions to handle user interactions or toast lifecycle events.

📦 Lightweight: Keep your android app fast and responsive with minimal library overhead.

Preview🎉

Configure your project

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

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

Step 2 : Add the dependency

dependencies {
        implementation 'com.github.rahul7400:InToast:latest-release'
}

Kotlin

Normal/Default Toast

InToast.makeText(this,"This is normal toast",Toast.LENGTH_SHORT)

Background and text color changing toast

val backgroundColor = "#C51162"    //string
val textColor = "#ffffff"          //string

InToast.makeText(this,"This is color changed toast",textColor ,backgroundColor,Toast.LENGTH_SHORT)

Corner Radius Changing toast

val radius = 100f   //double
InToast.makeText(this,"This is corner radius changed toast ",radius,Toast.LENGTH_SHORT)

Both Color Changing and radius changing toast

val radius = 100f                  //double
val backgroundColor = "#C51162"    //string
val textColor = "#ffffff"          //string

InToast.makeText(this,"This is color changed toast with corner radius changed",textColor ,backgroundColor ,radius,Toast.LENGTH_SHORT)

Java

Normal/Default Toast

InToast.makeText(this,"This is normal toast",Toast.LENGTH_SHORT);

Background and text color changing toast

String backgroundColor = "#C51162";    //string
String textColor = "#ffffff";         //string

InToast.makeText(this,"This is color changed toast",textColor ,backgroundColor,Toast.LENGTH_SHORT);

Corner Radius Changing toast

double radius = 100f;   //double
InToast.makeText(this,"This is corner radius changed toast ",radius,Toast.LENGTH_SHORT);

Both Color Changing and radius changing toast

double radius = 100f ;                 //double
String backgroundColor = "#C51162";    //string
String textColor = "#ffffff";          //string

InToast.makeText(this,"This is color changed toast with corner radius changed",textColor ,backgroundColor ,radius,Toast.LENGTH_SHORT);

License

Licensed under the Apache Licence 2.0.

customizable-toast-android-library's People

Contributors

rahul7400 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ajaycodex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.