我该如何申请一个样式编程?我该、样式

2023-09-13 23:45:07 作者:点点滴滴べ丶尐录着我们

我有一个风格被称为红色和绿色,我有一个,如果说明书,找出哪些申请,但我不知道code实际上从Java应用样式。

I have a styles called Red and Green and I have an if statment to find out which to apply, but I don't know the code to actually apply a style from the java.

推荐答案

我发现这是唯一能够建立在Java内的视图时完成。如果是前手在XML定义的,你不能动态地改变风格。

I found out this is only able to be done when creating an View from inside the Java. If it is defined in the XML before hand you cannot dynamically change the style.