How to make custom windowBackground theme style work on all Android devices? -
I am trying to make all my activities a custom theme style that should look like this: < P>
This theme works on many devices, including Nexus 7, Samsung Galaxy S4, and Samsung Dodge Charge (Gingerbread is running) However, on other devices, such as HP slate 7 and Motorola Diarrhea Razor, it ends in appearance like this:
I have the following in my topic I've also added Finally, it appears under I define the subject for each activity and manually use the EDIT: Setting The key to solving the problem is Note that I am no longer using It seems that some devices do not support accepting colors for this element. AndroidManifest.xml in the
application tag:
Android: Theme = "@ Style / Aaptim"
res / values / styles.xml occurs in:
& lt; Style name = "appbashtheme" parent = "@ Android: style / theme.light.field Bayer" & gt; & Lt; / Style & gt; & Lt; Style name = "Aaptim" parent = "@ style / appbashtheme" & gt; & Lt; Item name = "android: windowBackground" & gt; @color / background & lt; / Item & gt; & Lt; / Style & gt;
res / values-v11 under
styles.xml . Here's the style applied:
& lt; Style name = "appbashtheme" parent = "@ Android: style / theme. Hollow. Lightweight .actionbar" & gt; & Lt; / Style & gt;
styles.xml under
res / values-v14 :
& lt; Style name = "appbashtheme" parent = "@ Android: style / theme.device default.lite" & gt; & Lt; / Style & gt;
onCreate () in the
setTheme () function Have tried, but nothing has worked, I have tried to manually set the background in every
activity , and it does not work either to fix my problem. What can i do
android: windowBackground in the theme below:
& lt; Item name = "android: windowBackground" & gt; @drawable / default_background & lt; / Item & gt;
@color , but only one
@ drauble for which XML is below
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Size xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Shape = "Rectangle" & gt; & Lt; Solid Android: Color = "@color / background" /> & Lt; / Size & gt;
Comments
Post a Comment