我已经作出一个样式文件编程方式通过更改样式文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CodeFont" parent="@android:style/TextAppearance.Medium">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#ffffff</item>
<item name="android:textStyle">bold</item>
</style>
</resources>
放入res /值更改喜欢的颜色,文本样式,尺寸等文本的样式......。目前的文字颜色是白色的,但通过点击一个按钮,我想改变文本颜色,文本大小等...通过改变到这个上述文件。 请给我的想法...