Comments (6)
Hi, please show us your code where you define a theme for dialogs.
from android-styled-dialogs.
There is code
<item name="dialogBackground">@color/tt_gray_2</item>
<item name="titleTextColor">@color/tt_light_blue</item>
<item name="titleSeparatorColor">@color/sdl_button_separator_dark</item>
<item name="messageTextColor">@color/sdl_message_text_dark</item>
<item name="buttonTextColor">@color/sdl_button_text_dark</item>
<item name="buttonSeparatorColor">@color/sdl_button_separator_dark</item>
<item name="buttonBackgroundColorNormal">@color/sdl_button_normal_dark</item>
<item name="buttonBackgroundColorPressed">@color/tt_gray_1</item>
<item name="buttonBackgroundColorFocused">@color/tt_gray_1</item>
<item name="android:windowBackground">@drawable/shadow</item>
from android-styled-dialogs.
It's not a full code - do you inherit from DialogStyleDark or DialogStyleLight?
from android-styled-dialogs.
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="sdlDialogStyle">@style/DialogStyleDark.Custom</item>
</style>
<style name="AppTheme.NoActionBar" parent="@style/AppTheme">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
<style name="AppTheme.Dark" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:textColor">@android:color/white</item>
<item name="sdlDialogStyle">@style/DialogStyleDark.Custom</item>
</style>
<style name="DialogStyleDark.Custom">
<item name="dialogBackground">@color/tt_gray_2</item>
<item name="titleTextColor">@color/tt_light_blue</item>
<item name="titleSeparatorColor">@color/sdl_button_separator_dark</item>
<item name="messageTextColor">@color/sdl_message_text_dark</item>
<item name="buttonTextColor">@color/sdl_button_text_dark</item>
<item name="buttonSeparatorColor">@color/sdl_button_separator_dark</item>
<item name="buttonBackgroundColorNormal">@color/sdl_button_normal_dark</item>
<item name="buttonBackgroundColorPressed">@color/tt_gray_1</item>
<item name="buttonBackgroundColorFocused">@color/tt_gray_1</item>
<item name="android:windowBackground">@drawable/shadow</item>
</style>
from android-styled-dialogs.
Thanks, I think dialogBackground needs to be a drawable, not color. And I would experiment with windowBackground as well - never used it, I don't know what consequences it will have.
from android-styled-dialogs.
android:windowBackground is what defines the shadow in this case, it's suppose to be something like this:
We don't set this attribute in library, system resource is used by default.
from android-styled-dialogs.
Related Issues (20)
- Slow background black color overlay animation at API10 HOT 3
- TextAllCaps on buttons not working on API10 (with AppCompat) HOT 3
- How could I get an Object in callback HOT 1
- Support for AppCompat 22.1+
- can not perform this action after onsaveinstancestate HOT 2
- Ripple effect HOT 1
- Add support for dialog icon HOT 1
- No callback method is triggered in case that methods are called on standAlone helper HOT 1
- no listener can take some values to activity/fragment
- Big right margin of positive button
- when i change my app theme to custom theme,it has an error: HOT 2
- how to change listChoice Indicator`s color in SimpleDialogFragment? HOT 1
- When I implement the interface with my Fragment in Activity, I can't receive the Callback. HOT 7
- Design guidelines and full screen dialogs
- [Question] How To disable and enable positive button ? HOT 2
- Are you want to support diffrent textcolor between positive button and negative button? HOT 1
- Migrate to AndroidX HOT 6
- Caused by android.view.InflateException: Binary XML file line #8: Error inflating class RadioButton
- Caused by android.os.BadParcelableException Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.tw.coffinfakecall.dialogs.util.SparseBooleanArrayParcelable com.tw.coffinfakecall.dialogs.core.BaseDialogFragment.resolveTheme HOT 1
- Does work with Kotlin
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 android-styled-dialogs.