摘要: <!-- 最外层的布局背景为蓝色 --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_heigh 阅读全文
posted @ 2022-06-26 23:00 小白龙白龙马 阅读(112) 评论(0) 推荐(0)
摘要: 手机屏幕是长方形区域:短的叫宽,长的叫高。 控件宽度通过 android:layout_width 设置 控件高度通过 android:layout_height 设置 宽和高的取值,主要有3种: (1)、match_parent:表示与上级视图保持一致。上级视图的尺寸有多大,当前视图的尺寸就有多大 阅读全文
posted @ 2022-06-26 15:06 小白龙白龙马 阅读(49) 评论(0) 推荐(0)