Skip to content
Custom dialog with gif
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
art
gifdialog
gradle/wrapper
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

GifDialog

Android Arsenal

Custom loading dialog library in Kotlin

This library aims to help in creating beautiful loading dialogs with animated gifs. Thanks a lot to Fresco, without which it would not be possible for me to create this. :)

|Image|

How to use?

  1. Initialize -

val dialog = GifDialog.with(this)

  1. Configure -

dialog!! .isCancelable(false) .setText("Loading...") .setTextSize(18) .setTextBackgroundColor(ContextCompat.getColor(this, android.R.color.white)) .setTextColor(ContextCompat.getColor(this, android.R.color.holo_red_dark)) .setResourceId(R.drawable.giphy5)

  1. Show dialog (**with TAG) -

dialog?.showDialog("TAG_NAME")

  1. Dismiss dialog (**with TAG) -

dialog?.dismissDialog("TAG_NAME")

Easy enough!!! :) For more customization, refer sample application code.

Gradle

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

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

Then, add this in you app level build.gradle

dependencies {
            implementation 'com.github.aliwaris0572:GifDialog:{latest_version}'
    }
You can’t perform that action at this time.