The system comes with the dialog is really ugly to unbearable. So found a better third-party dialog.
The GitHub address is as follows: Https://github.com/pedant/sweet-alert-dialog
The usual, or look first!
Here's how to import Android Studio
Start by cloning the project on GitHub to local. Then put the item in your app's root directory
First, modify Settings.gradle add include,
The following changes are followed:
Include ' Sweet-alert-dialog:library '
Second, modify the Build.gradle (under your main project)
Added under dependencies in Build.gradle
Compile project (': Sweet-alert-dialog:library ')
Three, will sweet-alert-dialog under the Build.gradle in the
Compilesdkversion and buildtoolsversion are changed to your local address and will not find the constant version and group deleted
Four, start using it!
If you don't have git, you can download it here.
Copyright NOTICE: This article is for bloggers original article, welcome to indicate the source after reprint.
Nice dialog,sweet Alert Dialog import android Studio