【发布时间】:2016-12-30 12:16:46
【问题描述】:
我尝试在样式中引用的整个应用程序中应用主题颜色。我坚持从可绘制 xml 中的样式应用颜色。下面的方法不起作用,但需要这样的东西。
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid style="@style/sample" />
<stroke
android:width="3dip"
style="@style/sample" />
<corners android:radius="10dip" />
<padding
android:bottom="0dip"
android:left="0dip"
android:right="0dip"
android:top="0dip" />
</shape>
【问题讨论】: