修改从应用程序兼容性的Andr​​oid主题主题 [英] Modify android theme from appcompat theme

查看:268
本文介绍了修改从应用程序兼容性的Andr​​oid主题主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法来改变从普通的Andr​​oid主题的属性,如果应用程序正在使用的应用程序兼容性主题?

我的问题:
我使用,以便应用程序兼容性的主题,以获得L-看。
但是,我需要使用ActionMode,这是基本的Andr​​oid API。
如果我改变我的应用程序兼容性主题内的ActionMode风格,为SupportedActionMode风格应用。
但我defintily需要基本的API ActionMode。

有谁知道一种方法如何做到这一点,为了我的风格背景ActionMode?

解决方案

使用的 ActionMode 的不属性的名称机器人: preFIX。

Is there any way to change an attribute from the stock android themes, if the App is using the AppCompat theme?

My Problem: I am using AppCompat theme in order to get the L-Look. But I need to use the ActionMode, which is from basic Android API. If I change the ActionMode style within my AppCompat theme, the style for the SupportedActionMode is applied. But i defintily need the basic API ActionMode.

Does anybody know a way how to do this, in order to style my ActionMode background?

解决方案

Use ActionMode properties' names without android: prefix.

这篇关于修改从应用程序兼容性的Andr​​oid主题主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆