android动态改变样式 [英] android change style dynamically
本文介绍了android动态改变样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在styles.xml中描述了我的对象的属性(不知道对象是什么)。我想在styles.xml中动态更改这些属性。
I've describef properties of my objects (nevermind what the object is) in styles.xml. I would like to change these properties dynamically in styles.xml.
有人知道我该怎么办?
推荐答案
我看到这个问题的矛盾的答案。这说明是,但这说明 no 。我看了android的docs的View,并找不到任何setStyle方法。
I am seeing contradicting answers to this question. This says yes, but this says no. I looked at the android docs for the View and can not find any setStyle method.
这篇关于android动态改变样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文