摘要: Button继承自TextView,所以TextView的一些属性同样也适用于Button控件。 Button的直接子类为CompoundButton。Button的间接子类有CheckButton、RadioButton、Switch和ToggleButton。1.Button常用属性设置1.1设置Button的背景颜色 要设置Button按钮的背景颜色,可以通过在xml文件中设置android:background属性实现,同样也可以通过在代码中使用setBackgroundColor()方法来实现。<Button android:id="@+id/button1" 阅读全文
posted @ 2013-01-03 21:42 依旧淡然 阅读(8467) 评论(0) 推荐(1) 编辑