Android碰到的问题之一
16lz
2021-12-04
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="身高 (cm)" /> <EditText android:id="@+id/height" android:layout_width="fill_parent" android:layout_height="wrap_content" android:numeric="integer" android:text="" /></LinearLayout>当屏幕是垂直分布的时候,要使用LinearLayout,和android:orientation="vertical"布局方式是线性垂直布局,而不用RelativeLayout相对垂直布局,
更多相关文章
- Android(安卓)UI开发第九篇——SlidingDrawer 抽屉效果
- Android五大布局(一)LinearLayout.FrameLayout
- Android常用布局:线性布局和相对布局
- android 线性布局几个属性
- Android学习笔记06:线性布局LinearLayout
- Android学习笔记06-线性布局LinearLayout
- Android的布局控件----LinearLayout(线性布局)
- Android移动应用开发_基础页面布局总结
- 51. (android开发)线性布局、相对布局、帧布局