- 11
- 0
- 约1.56万字
- 约 42页
- 2016-12-15 发布于北京
- 举报
相对布局RelativeLayout 相对布局(RelativeLayout) 是一种非常灵活的布局方式,能够通过指定界面元素与其他元素的相对位置关系,确定界面中所有元素的布局位置 特点:能够最大程度保证在各种屏幕类型的手机上正确显示界面布局 在众多布局中,推荐使用相对布局 RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=/apk/res/android TextView android:id=@+id/label android:layout_height=wrap_content android:layout_width=fill_parent android:text=用户名: /TextView EditText android:id=@+id/entry android:layout_height=wrap_content android:layout_width=fill_parent android:layout_below=@id/label /EditText /RelativeLayout 需要设置id Evaluation only. Created
原创力文档

文档评论(0)