首页 > 移动平台 > 详细

Android四种布局方式

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

线性布局

        <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四种布局方式

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!