Comments (11)
Can you please post a sample code of how to create an alertDialog ?
Well. There's already a demo.
Does it work well on Gingerbread?
Yes. It works well on all versions of the Android platform back to v1.0. So it also works well on Gingerbread.
How do I use this library?
Checkout the project and take a look at the alertdialogpro-demo module.
The styles.xml file shows you how to specify a global theme to the AlertDialogPro.
The MainActivity.java file shows you how to build an AlertDialogPro and change the theme of AlertDialogPro in the code.
You can also take a look at the alertdialogpro-theme-material module which implements a material theme. It can show you how to do theme customization with this project.
from alertdialogpro.
Oh, sorry for missing this. I was sure I've seen only a very short project for material, and now I see more.
Probably missed a lot by staying up late. :)
I think this is the part I've seen:
https://github.com/fengdai/AlertDialogPro/tree/master/alertdialogpro-theme-material
Anyway, how come the support library doesn't have this functionality ?
from alertdialogpro.
I don't know... Maybe there is no need for Google to do that since this functionality is not as complex as the ActionBar compatibility.
from alertdialogpro.
I see.
Say, now I've tried to use Android-Studio and run the demo, but got an error running it. Can you please help me handle it?
here's the error:
Error:Execution failed for task ':alertdialogpro-demo:processDebugResources'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\android\build-tools\21.0.0\aapt.exe package -f --no-crunch -I D:\android\platforms\android-21\android.jar -M D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\intermediates\manifests\debug\AndroidManifest.xml -S D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\intermediates\res\debug -A D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\intermediates\assets\debug -m -J D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\generated\source\r\debug -F D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\intermediates\libs\alertdialogpro-demo-debug.ap_ --debug-mode --custom-package com.alertdialogpro.demo -0 apk --output-text-symbols D:\android-studio\Android studio Projects\AlertDialogPro\alertdialogpro-demo\build\intermediates\symbols\debug
Error Code:
-1073741819
EDIT: with Eclipse (which I prefer to use anyway), it worked fine.
from alertdialogpro.
Did you install the latest SDK Build-tools v21?
from alertdialogpro.
@fengdai Yes. I always install the latest.
Anyway, I've succeeded using Eclipse, so if you wish you can close this thread.
from alertdialogpro.
OK. If any question, be free to ask me : )
from alertdialogpro.
Yes, I actually have a question.
Since I am willing to use only the material design, is it possible to avoid using the rest of the files (of Holo) ?
Is it possible for me to merge the 2 libraries, and use a single one?
BTW, you should check the warnings of the projects.
from alertdialogpro.
Yes. Just delete the Holo files. And change the defValues to Material:
In AlertController.java, the constructor method:
mAlertDialogLayout = a.getResourceId(R.styleable.AlertDialogProStyle_adpLayout,
R.layout.alert_dialog_material);
mListLayout = a.getResourceId(
R.styleable.AlertDialogProStyle_adpListLayout,
R.layout.select_dialog_material);
mMultiChoiceItemLayout = a.getResourceId(
R.styleable.AlertDialogProStyle_adpMultiChoiceItemLayout,
R.layout.select_dialog_multichoice_material);
mSingleChoiceItemLayout = a.getResourceId(
R.styleable.AlertDialogProStyle_adpSingleChoiceItemLayout,
R.layout.select_dialog_singlechoice_material);
mListItemLayout = a.getResourceId(R.styleable.AlertDialogProStyle_adpListItemLayout,
R.layout.select_dialog_item_material);
from alertdialogpro.
Would you please open another issue for this question?
from alertdialogpro.
Yes, here:
#2
from alertdialogpro.
Related Issues (20)
- Compatibility with support v20 HOT 3
- Suggestion: publish on those websites HOT 3
- Possible to use AlertDialogPro with ListPreference widget?
- White buttons in Activity when using dark theme with AppCompat 22 HOT 2
- ProgressDialogPro exception HOT 12
- adpButtonBarPositiveButtonStyle with Holo theme HOT 5
- Add support for the new Support library 22.1 HOT 6
- Resource not found Exception for Api > 21 HOT 4
- Checkbox Buttons Offset on Xperia T HOT 1
- Error when tryin do compile 23 SDK version HOT 3
- Do it support accent color of edittext in the alert dialog pro? HOT 1
- NoClassDefFoundError AllCapsTransformationMethod HOT 2
- Caused by: java.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintTypedArray HOT 1
- hope upgrade to compile 'com.android.support:appcompat-v7:23.1.1' HOT 2
- in support v7 23.1.1 android.support.v7.internal become private how to solve this problem? HOT 1
- Failed to resolve: com.github.fengdai:alertdialogpro-theme-material:0.2.6 HOT 2
- Changing texts' typeface HOT 3
- have error with compile 'com.android.support:appcompat-v7:23.2.1' HOT 2
- 示例代码报错? HOT 1
- Issue About Deprecated Then How Can Handle That Issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertdialogpro.