I can not understand what is happening with the AppBaseTheme in Android. In styles.xml, I have the following code
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="mycolor"> <item name="android:background">@layout/header_gradient</item> <item name="android:padding">5dip</item> </style> <style name="myParentTheme" parent="android:Theme.Light"> <item name="android:attr/windowTitleSize">40dip</item> <item name="android:attr/windowTitleBackgroundStyle">@style/mycolor</item> </style> <style name="AppTheme" parent="AppBaseTheme"> </style>
In AndroidManifest.xml, when I use android: theme = "@ style / myParentTheme", the color and size of the header are set according to what I want to set. But the style for text fields is changing to old regular text fields. When I use android: theme = "@ style / AppTheme", the user interface looks very "similar to Android", but my specific settings for the name have no effect. Removing parent = "AppBaseTheme" makes the AppTheme style the same as myParentTheme.
Also, why can't I see all the elements of R.attr when I do Ctrl + Space when I enter the attribute name of the Style tag?
Please, help. Thanks.
source share