Closed javagc closed 10 years ago
Hi, please show us your code where you define a theme for 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>
It's not a full code - do you inherit from DialogStyleDark or DialogStyleLight?
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.
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.
I used this library but my dialogs have not shadow . It is here
Can you help me?