我试图做主题,我问自己,是否有可能为特定的textview提供不同的颜色。安卓主题颜色
例如:在“Theme.One”中,我将在文本视图“标题”中使用颜色绿色和textview“text1”颜色粉红色。
的themes.xml
<style name="Theme.One" parent="@android:style/Theme.Light">
<item name="android:background">@color/Azur</item>
<item name="android:textColor">@color/Black</item>
...
</style>
<style name="Theme.Two" parent="@android:style/Theme.Light">
<item name="android:background">@color/Blue</item>
<item name="android:textColor">@color/White</item>
...
</style>
Interface.xml
<TextView
android:text="@string/Title"
android:id="@+id/Title"
android:textSize="25sp" />
<TextView
android:text="@string/text1"
android:id="@+id/text1"
android:textSize="20sp" />
我希望能有很好制定的句子,请多多关照了答案,
阿齐扎