Comments (10)
Sorry, there isn't any default theme now. And I think it isn't necessary. Because even if I provide a default theme, it is also a theme, contains layouts and resources, and has no difference with just choosing the holo-theme or material-theme. So if you don't use any built-in theme, you should implement your own. I suggest you to choose a built-in theme from the two as your "default" theme. And do some customization based on it to meet your requirement.
from alertdialogpro.
Oh, did you add alertDialogProTheme attribute to your app's theme?
Like this:
<item name="alertDialogProTheme">@style/Theme.AlertDialogPro.Material</item>
In this case, you should let your project depend on alertdailogpro-core and alertdailog-theme-material.
from alertdialogpro.
Need to describe this in install readme section. Thanks.
from alertdialogpro.
But better, detect if no theme found and use default AlertDialog implementation.
from alertdialogpro.
Fine. Will describe there.
But better, detect if no theme found and use default AlertDialog implementation.
Good idea. I'll think about it.
from alertdialogpro.
I am highly likely having same issue. Even when I have add all alertdialogpro dependencies to gradle and set alertDialogProTheme attribute app crashes on dialog.show:
10-14 20:18:01.911 13006-13006/cz.android.vouskopes D/AndroidRuntime﹕ Shutting down VM
10-14 20:18:01.913 13006-13006/cz.android.vouskopes E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: cz.android.vouskopes, PID: 13006
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1233)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2598)
at android.content.res.Resources.getLayout(Resources.java:1049)
at android.view.LayoutInflater.inflate(LayoutInflater.java:412)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:377)
at com.alertdialogpro.internal.AlertController.installContent(AlertController.java:193)
at com.alertdialogpro.AlertDialogPro.onCreate(AlertDialogPro.java:166)
at android.app.Dialog.dispatchOnCreate(Dialog.java:373)
at android.app.Dialog.show(Dialog.java:274)
at cz.android.vouskopes.MainActivity.backupData(MainActivity.java:301)
at cz.android.vouskopes.MainActivity.onOptionsItemSelected(MainActivity.java:190)
from alertdialogpro.
What's your MainActivity's theme? Does it inherit the Application's theme or other theme which contains the alertDialogProTheme
attribute?
from alertdialogpro.
In my application theme:
<item name="alertDialogProStyle">@style/YourAlertDialogProStyle</item>
<item name="alertDialogProTheme">@style/AlertDialogPro.Holo.Light</item>
in YourAlertDialogProStyle:(even when I tried to disable this)
<style name="YourAlertDialogProStyle" parent="Widget.AlertDialogPro.Holo.Light">
<item name="adpTitleDividerBackground">@color/dialog_divider</item>
</style>
My app theme is dependent on Theme.Holo.Light.DarkActionBar
Your library is dependent on AppCompat library thus It seems to me that application theme must be based on AppCompat's themes. Mustn't it?
thx I appreciate your work and time
from alertdialogpro.
You should use Theme.AlertDialogPro.Holo.Light
:
<item name="alertDialogProTheme">@style/Theme.AlertDialogPro.Holo.Light</item>
from alertdialogpro.
Just inherit Theme.AlertDialogPro.Holo.Light
and override attribute adpTitleDividerBackground
, if you wanna change it:
<style name="YourAlertDialogProTheme" parent="Theme.AlertDialogPro.Holo.Light">
<item name="adpTitleDividerBackground">@color/dialog_divider </item>
</style>
And don't forget to set it to your app's theme:
<item name="alertDialogProTheme">@style/YourAlertDialogProTheme</item>
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.