摘要:
Button继承自TextView,是TextView的子类。 在要设计的界面添加Button: <Button android:id="@+id/btn_button" android:layout_width="match_parent" android:layout_height="wrap_ 阅读全文
摘要:
id ⇒ 设置一个组件id,通过findViewById()的方法获取到该对象,然后进行相关设置 layout_width ⇒ 组件宽度 layout_height ⇒ 组件高度 wrap_content 自适应大小 match_parent 与父同 text ⇒ 设置文本内容 background 阅读全文