Giter Site home page Giter Site logo

custom-toast's Introduction

Simple Custom Toast

An easy-to-use custom toast library for Android, designed to enrich your applications with beautifully styled toast messages.

Credits

Design inspired by and credited to Anastasia D.

Table of Contents

Installation

To integrate Simple Custom Toast into your Android project, add the following configuration to your settings.gradle file:

maven {
    setUrl("https://jitpack.io")
}

Then, you can add configuration to your build.gradle in app module:

implementation("com.github.NallDev:Custom-Toast:1.0.0")

Usage

Follow these steps to use the Simple Custom Toast in your Android application.

  1. Create an instance of NalToast You can create a new instance of NalToast by passing the context and the style type you want.
val customToast = NalToast(binding.root, Type.SUCCESS)
  1. Display the toastTo show the toast, use the show method of the instance you created. Specify the message and the duration.
customToast.show("Hello World", Duration.SHORT)

Attributes

Duration
Duration.SHORT
Duration.LONG
Styles Image
Type.SUCCESS image
Type.FAIL image
Type.INFO image

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

custom-toast's People

Contributors

nalldev avatar

Stargazers

 avatar

Watchers

 avatar

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.