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