RelativeLayout的布局学习(部分知识点)
16lz
2022-04-06
1.这个是APIDemo中的布局格式:
1.这里面比较有用的部分1)
[color=red]android:background="@android:drawable/editbox_background"[/color]
2.android:layout_marginLeft="10dip"是设定后续如果有放在左面的View就默认间隔10dp的距离;
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Type here:"/>
android:id="@+id/entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/label"/>
1.这里面比较有用的部分1)
[color=red]android:background="@android:drawable/editbox_background"[/color]
2.android:layout_marginLeft="10dip"是设定后续如果有放在左面的View就默认间隔10dp的距离;
更多相关文章
- android有用的知识
- Android与Js交互获取返回值
- Android双击
- Android自定义Dialog
- Android使用MediaRecorder实现录音功能相关知识
- EditText 行间距 以及光标高度和样式
- android文件管理实现源码
- Android总结笔记
- android按两次后退键退出程序