开发者

Do Android controls/widgets have choice of styles?

I have a column of Checkboxes and associated EditTexts and I want one pair of these to have a distinct appearance because it has a distinct significance.

Short of writing custom controls, or using custom drawables, does Android have any way to style or alter the appearance of basic controls like buttons, checkboxes, etc, in the XML where the control is declared? Or is there just one native style or appearance for all A开发者_Python百科ndroid Checkboxes, Buttons, EditTexts, etc?

Thanks in advance.


You can almost custom everything related to style:

http://developer.android.com/guide/topics/ui/themes.html

In fact, an Android Button is just a TextView with different style. In source code, the Button is just an extend to TextView with no overriding.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜