首页 > 移动平台 > 详细

Android:控件布局(单帧布局)FrameLayout

时间:2014-07-03 06:25:25      阅读:323      评论:0      收藏:0      [点我收藏+]

FrameLayout:所有控件位于左上角,并且直接覆盖前面的子元素。

实例:

 bubuko.com,布布扣

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <TextView
         android:layout_gravity="center"
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="80%" />

    <ProgressBar
        android:layout_gravity="center"
        android:id="@+id/progressBar1"
        style="?android:attr/progressBarStyleLarge"
        android:layout_width="160dp"
        android:layout_height="160dp" />

</FrameLayout>

 

Android:控件布局(单帧布局)FrameLayout,布布扣,bubuko.com

Android:控件布局(单帧布局)FrameLayout

原文:http://www.cnblogs.com/tinyphp/p/3818093.html

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