码迷,mamicode.com
首页 > 移动开发 > 详细

Android 布局测试

时间:2019-10-31 18:21:26      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:col   oid   into   class   img   div   http   布局   content   

wrap_content

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="测试填满父控件的空白" />

技术图片

 

 

 layout_marginTop

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dp"
    android:text="测试与上边的距离" />

技术图片

 

layout_marginLeft

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="50dp"
    android:text="测试与左边距离" />

 技术图片

Android 布局测试

标签:col   oid   into   class   img   div   http   布局   content   

原文地址:https://www.cnblogs.com/zhangxuechao/p/11772675.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!