最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Android布局之幀布局FrameLayout詳解

 更新時間:2017年10月12日 10:05:36   作者:海向_起源  
這篇文章主要為大家詳細(xì)介紹了Android布局之幀布局FrameLayout ,具有一定的參考價值,感興趣的小伙伴們可以參考一下

FrameLayout

在這個布局中,所有的子元素都不能被指定放置的位置,他們統(tǒng)統(tǒng)防御這塊區(qū)域的左上角,
并且后面的子元素直接覆蓋在前面的子元素之上,將前面的子元素部分和全部遮擋。

用途

常用于進(jìn)度條的表示

<?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:background="#687564"
  android:id="@+id/textView"
  android:layout_width="300dp"
  android:layout_height="300dp"
  android:text="第一個" />

 <TextView
  android:layout_gravity="center"
  android:background="#422322"
  android:id="@+id/textView2"
  android:layout_width="200dp"
  android:layout_height="200dp"
  android:text="第二個" />

 <TextView
  android:layout_gravity="center"
  android:background="#f1f1f1"
  android:id="@+id/textView3"
  android:layout_width="100dp"
  android:layout_height="100dp"
  android:text="第三個" />

 <TextView
  android:layout_gravity="center"
  android:background="#f22"
  android:id="@+id/textView4"
  android:layout_width="80dp"
  android:layout_height="80dp"
  android:text="第四個" />
</FrameLayout>


這里寫圖片描述

<?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">


 <ProgressBar
  android:layout_gravity="center"
  android:id="@+id/progressBar"
  style="?android:attr/progressBarStyle"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" />

 <TextView
  android:layout_gravity="center"
  android:id="@+id/textView5"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="%20" />
</FrameLayout>


這里寫圖片描述

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論

托克逊县| 津市市| 富蕴县| 涞源县| 墨江| 定边县| 卫辉市| 宝山区| 肇庆市| 亚东县| 彰化县| 德安县| 雷州市| 娄底市| 东方市| 安远县| 晋中市| 永寿县| 喀什市| 金川县| 浮梁县| 奇台县| 临江市| 富源县| 建瓯市| 政和县| 大关县| 微山县| 彰化县| 苍南县| 陇川县| 黄骅市| 德安县| 潞西市| 兴安盟| 宁南县| 天水市| 玉门市| 闽侯县| 建始县| 兴海县|