【发布时间】:2017-02-25 20:11:11
【问题描述】:
我有 2 个主题,一个是黑暗的,一个是明亮的。我想获取当前主题背景颜色并在这样的布局文件中使用它:
<View
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="(backgroundColor)" />
假设(backgroundColor) 是当前主题背景颜色。除了(backgroundColor),我还需要放什么?
【问题讨论】:
-
这是什么!!这个
(backgroundColor)是什么意思?! -
背景颜色的占位符,我无法获得
-
我还是不明白你的问题,但是你可能想看看这个answer
-
我试图让我的问题更容易理解。希望这会有所帮助
标签: android android-theme