Android: DialogPreference color/style?

后端 未结 3 992
遇见更好的自我
遇见更好的自我 2021-01-11 13:24

My main preference activity is set to \"@android:style/Theme.Light\". One of my preferences is a DialogPreference who\'s Dialog contains a ListView. The ListV

3条回答
  •  执笔经年
    2021-01-11 14:18

    You can inherit defult themes when creating styles in Android.

    Please read the documentation on Applying Styles and Themes specifically the section on inheritance

    You should be able to take Theme.light and correct any issues that you have with it.

    You may find that different vendors alter the themes on their devices so if you are targeting a broad range of hardware then you may be better creating a full theme to ensure that your app is consistent on all platforms.

    UPDATE

    As stated in this answer Consistent UI color in all Android devices there are public and non-public attributes. The answer provides a link to a list of public attributes however kernel.org is still down so you will need to dig through the source for core/res/res/values/public.xml

提交回复
热议问题