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

Android四种布局方式

时间:2018-10-31 13:50:42      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:布局   ogr   img   src   proc   idt   lse   lca   text   

线性布局

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <Button
                android:id="@+id/button"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="7"
                android:text="Button"
                android:textAllCaps="false"
                />

            <ProgressBar
                android:id="@+id/process_bar"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:max="100" />
        </LinearLayout>

技术分享图片

Android四种布局方式

标签:布局   ogr   img   src   proc   idt   lse   lca   text   

原文地址:https://www.cnblogs.com/uestcman/p/9882395.html

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