Академический Документы
Профессиональный Документы
Культура Документы
463 (https://github.com/fengdai/AlertDialogPro/stargazers?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178) 29
(https://github.com/fengdai/AlertDialogPro/watchers?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178) 121
(https://github.com/fengdai/AlertDialogPro/network?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178) 15
(https://github.com/fengdai/AlertDialogPro/issues?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178)
(https://facebook.com/sharer.php?
General u=https://android-
Category
arsenal.com/details/1/1178)
Free (/free)
Tag
(https://twitter.com/intent/twe
arsenal.com/details/1/1178&text=The%20And
Dialogs (/tag/30)
License %20Dialogs%20-%20AlertDialogPro
Apache License, Version 2.0 (http://opensource.org/licenses/Apache-2.0?utm_source=android-arsenal.co
(http://news.ycombinator.com/submitlink
m&utm_medium=referral&utm_campaign=1178)
arsenal.com/details/1/1178&t=The%20Andro
Min SDK
7 (Android 2.1 Eclair) (/api?level=7)
Registered
%20Dialogs%20-%
Nov 30, 2014
Favorites
(https://plus.google.com/share?
4 url=https://android-
Link arsenal.com/details/1/1178)
https://github.com/fengdai/AlertDialogPro (https://github.com/fengdai/AlertDialogPro?utm_source=android
(https://reddit.com/subm
-arsenal.com&utm_medium=referral&utm_campaign=1178)
arsenal.com/details/1/1178&title=The%20An
See also
DialogAlchemy (/details/1/3741)
BubbleAlert (/details/1/6017) %20Dialogs%2
FancyAlertDialog (/details/1/6626)
LovelyDialog (/details/1/3452)
HtmlDialog (/details/1/1523)
Additional
Language
Java
Version
0.2.0 (Dec 13, 2014) (https://github.com/fengdai/AlertDialogPro/releases/tag/0.2.0?utm_source=android-a
rsenal.com&utm_medium=referral&utm_campaign=1178)
Created
Sep 1, 2014
Updated
May 4, 2018
Owner
Feng Dai (fengdai) (/user/fengdai)
Contributor
1 (https://github.com/fengdai/AlertDialogPro/graphs/contributors?utm_source=android-arsenal.com&utm_
medium=referral&utm_campaign=1178)
Activity
Badge
Generate
Download
Source code
APK file
Promotion
¡FELICIDADES!
USUARIO 1.000.000
Nuestro sistema aleatorio de
selección de ganadores podría
elegirte como ganador de un
SMARTPHONE
ONLINE: 16/09/2018 14:42
CLICA AQUI
©fabricadepremios
(https://android-arsenal.com/details/1/1178)
Deprecated
AlertDialogPro
Why AlertDialogPro?
Theming Android's AlertDialog is not an easy thing. Because some of its attributes are not
avaliable on old platform. Even on newer you still can't use android:layout to specify your own
layout, since your views' ids should be consistant with Android's, some of which are not public...
AlertDialogPro can make theming a lot easier.
(https://github.com/fengdai/AlertDialogPro/raw/master/image/holo_light_dialog_only.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=1178)
(https://github.com/fengdai/AlertDialogPro/raw/master/image/material_light_dialog_only.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=1178)
(https://github.com/fengdai/AlertDialogPro/raw/master/image/flavored_material_light.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=1178)
(https://github.com/fengdai/AlertDialogPro/raw/master/image/material_dark_dialog_only.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=1178)
Structure
alertdialogpro-core
Contains core codes for building an AlertDialogPro. Most of it's codes are ported from the latest
Android Platform. It doesn't contain any resource file. If you want to implement a brand new theme,
use this project directly. Otherwise, you should use alertdialogpro-theme-material or alertdialogpro-
theme-holo.
alertdialogpro-theme-material
Based on alertdialogpro-core, gives AlertDialogPro a Material theme.
alertdialogpro-theme-holo (Obsolete)
Also based on alertdialogpro-core, gives AlertDialogPro a Holo theme.
Quick Start
Download
Grab latest version via Gradle:
dependencies {
compile 'com.github.fengdai:alertdialogpro-theme-material:0.2.6'
}
or Maven:
<dependency>
<groupId>com.github.fengdai</groupId>
<artifactId>alertdialogpro-theme-material</artifactId>
<version>0.2.6</version>
</dependency>
<style name="YourAppTheme">
...
<item name="alertDialogProTheme">@style/Theme.AlertDialogPro.Material.Light</item>
</style>
Build an AlertDialogPro
Use AlertDialogPro.Builder to build an AlertDialogPro:
With the example codes above, you can create an AlertDialogPro which has an icon, a title, a
message body and three option buttons. Look into the sample
(https://github.com/fengdai/AlertDialogPro/blob/master/alertdialogpro-
demo/src/main/java/com/alertdialogpro/demo/MainActivity.java?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178) to see more usages.
<item name="alertDialogProTheme">@style/FlavoredMaterialLight</item>
<item name="alertDialogProTheme">@style/YourAlertDialogProTheme</item>
Requirements
Thanks
This project contains some code ported from The Android Open Source Project. Apache
License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178)
Thank vbauer (https://github.com/vbauer?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=1178) and his awesome site Android-
Arsenal (https://android-arsenal.com/)
License
http://www.apache.org/licenses/LICENSE-2.0