




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、框架布局:FrameLayoutFrameLayout布局:所有添加到這個(gè)布局中的視圖都以層疊的方式顯示。第一個(gè)添加的組件放到最底層,最后添加到框架中的視圖顯示在最上面。上一層的會(huì)覆蓋下一層的組件。<FrameLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" > <TextView android:layout_width="200dp&q
2、uot; android:layout_height="200dp" android:background="#aa0000" android:text="第一個(gè)" android:gravity="bottom|right"/> <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="#00aa00" android:te
3、xt="第二個(gè)" android:gravity="bottom|right"/> <TextView android:layout_width="50dp" android:layout_height="50dp" android:background="#0000aa" android:text="第三個(gè)" android:gravity="bottom|right"/></FrameLayout>android:grav
4、ity:”bottom|right” /控制文字在一個(gè)文本框里的位置android:layout_gravity=”center_vertical|center_horizontal”/控制文本框在頁(yè)面的位置。=<FrameLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" > <TextView android:layout_width="
5、200dp" android:layout_height="200dp" android:background="#aa0000" android:text="第一個(gè)" android:gravity="bottom|right" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="100dp" android:layou
6、t_height="100dp" android:background="#00aa00" android:text="第二個(gè)" android:gravity="bottom|right" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="50dp" android:layout_height="50dp"
7、android:background="#0000aa" android:text="第三個(gè)" android:gravity="bottom|right" android:layout_gravity="center_vertical|center_horizontal"/></FrameLayout>=<FrameLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent&q
8、uot; android:layout_height="match_parent" > <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="#aa0000" android:text="第一個(gè)" android:gravity="center" android:layout_gravity="top|left"/>
9、 <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="#aa0000" android:text="第二個(gè)" android:gravity="center" android:layout_gravity="top|right"/> <TextView android:layout_width="100dp" an
10、droid:layout_height="100dp" android:background="#aa0000" android:text="第三個(gè)" android:gravity="center" android:layout_gravity="bottom|left"/> <TextView android:layout_width="100dp" android:layout_height="100dp" android:backgro
11、und="#aa0000" android:text="第四個(gè)" android:gravity="center" android:layout_gravity="bottom|right"/></FrameLayout><FrameLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_pare
12、nt" > <TextView android:layout_width="230dp" android:layout_height="230dp" android:background="#555500" android:text="第一層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView andr
13、oid:layout_width="200dp" android:layout_height="200dp" android:background="#777700" android:text="第二層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="170dp&qu
14、ot; android:layout_height="170dp" android:background="#999900" android:text="第三層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="140dp" android:layout_height="
15、;140dp" android:background="#BBBB00" android:text="第四層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="110dp" android:layout_height="110dp" android:background
16、="#DDDD00" android:text="第五層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout_width="80dp" android:layout_height="80dp" android:background="#FFFF00" android:text="第六層" android:gravity="center" android:layout_gravity="center_vertical|center_horizontal"/> <TextView android:layout
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 農(nóng)業(yè)產(chǎn)業(yè)集群農(nóng)業(yè)產(chǎn)業(yè)園區(qū)產(chǎn)業(yè)園區(qū)農(nóng)業(yè)文化遺產(chǎn)保護(hù)與傳承機(jī)制研究報(bào)告
- 農(nóng)業(yè)產(chǎn)業(yè)集群農(nóng)業(yè)產(chǎn)業(yè)鏈金融創(chuàng)新與應(yīng)用研究分析報(bào)告
- 益陽(yáng)市桃江縣2025年高考臨考沖刺數(shù)學(xué)試卷含解析
- 廣東省汕頭市潮南區(qū)兩英鎮(zhèn)2024-2025學(xué)年數(shù)學(xué)七年級(jí)第一學(xué)期期末綜合測(cè)試試題含解析
- 江西師范高等??茖W(xué)?!段⑸锱c人類疾病》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣東藥科大學(xué)《民俗學(xué)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2024-2025學(xué)年內(nèi)蒙古呼和浩特實(shí)驗(yàn)教育集團(tuán)九上化學(xué)期末考試試題含解析
- 河南省魯山、舞鋼2024年化學(xué)九上期末教學(xué)質(zhì)量檢測(cè)模擬試題含解析
- 山東旅游職業(yè)學(xué)院《中國(guó)特色社會(huì)主義理論體系》2023-2024學(xué)年第一學(xué)期期末試卷
- 休閑食品品牌與IP衍生品創(chuàng)新創(chuàng)業(yè)項(xiàng)目商業(yè)計(jì)劃書(shū)
- Unit 2 Home Sweet Home 第3課時(shí)(Section A 3a-3c) 2025-2026學(xué)年人教版英語(yǔ)八年級(jí)下冊(cè)
- 安全生產(chǎn)月題庫(kù)-安全生產(chǎn)知識(shí)競(jìng)賽題庫(kù)(1800道)
- 教師團(tuán)隊(duì)協(xié)作與溝通能力
- 保安公司薪酬管理制度
- 2025年計(jì)劃生育與婦幼健康考試試題及答案
- 2025至2030中國(guó)廢銅行業(yè)發(fā)展現(xiàn)狀及發(fā)展趨勢(shì)與投資風(fēng)險(xiǎn)報(bào)告
- 血管內(nèi)導(dǎo)管相關(guān)性血流感染預(yù)防與診治2025
- 【高二下期末】廣東省東莞市2021-2022學(xué)年高二下學(xué)期期末教學(xué)質(zhì)量監(jiān)測(cè)英語(yǔ)試題(解析版)
- 2025年普通高等學(xué)校招生全國(guó)統(tǒng)一考試數(shù)學(xué)試題(全國(guó)二卷)(有解析)
- 無(wú)人飛機(jī)農(nóng)業(yè)植保應(yīng)用技術(shù) 課件17、極飛P40農(nóng)業(yè)無(wú)人飛機(jī)作業(yè)-3
- 呼吸病區(qū)進(jìn)修管理制度
評(píng)論
0/150
提交評(píng)論