Content-Length: 293825 | pFad | http://github.com/prongbang/SwipeDowner

A2 GitHub - prongbang/SwipeDowner: Swipe Downer Message Library
Skip to content

prongbang/SwipeDowner

Repository files navigation

Swipe Downer

Swipe Downer Message Android Library

screenshot gif

Download

build.gradle

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

Support Library

implementation 'com.github.prongbang:swipedowner:1.0.4'

AndroidX

implementation 'com.github.prongbang:swipedowner:2.0.0'

How to use

In Activity

// error
SwipeDowner(this).builder().isError().message("Error").show()

// warning
SwipeDowner(this).builder().isWarning().message("Warning").show()

// success
SwipeDowner(this).builder().isSuccess().message("Success").show()

In Fragment

// error
SwipeDowner(activity).builder().isError().message("Error").show()

// warning
SwipeDowner(activity).builder().isWarning().message("Warning").show()

// success
SwipeDowner(activity).builder().isSuccess().message("Success").show()

Example in Activity

fab1.setOnClickListener { view ->
    SwipeDowner(this).builder()
            .isError()
            .message("Error")
            .show()
}

fab2.setOnClickListener { view ->
    SwipeDowner(this).builder()
            .isWarning()
            .message("Warning")
            .show()
}

fab3.setOnClickListener { view ->
    SwipeDowner(this).builder()
            .isSuccess()
            .message("Success")
            .show()
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/prongbang/SwipeDowner

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy