




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、框架布局:FrameLayoutFrameLayout布局:所有添加到這個布局中的視圖都以層疊的方式顯示。第一個添加的組件放到最底層,最后添加到框架中的視圖顯示在最上面。上一層的會覆蓋下一層的組件。<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="第一個" android:gravity="bottom|right"/> <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="#00aa00" android:te
3、xt="第二個" android:gravity="bottom|right"/> <TextView android:layout_width="50dp" android:layout_height="50dp" android:background="#0000aa" android:text="第三個" android:gravity="bottom|right"/></FrameLayout>android:grav
4、ity:”bottom|right” /控制文字在一個文本框里的位置android:layout_gravity=”center_vertical|center_horizontal”/控制文本框在頁面的位置。=<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="第一個" 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="第二個" 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="第三個" 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="第一個" android:gravity="center" android:layout_gravity="top|left"/>
9、 <TextView android:layout_width="100dp" android:layout_height="100dp" android:background="#aa0000" android:text="第二個" android:gravity="center" android:layout_gravity="top|right"/> <TextView android:layout_width="100dp" an
10、droid:layout_height="100dp" android:background="#aa0000" android:text="第三個" android:gravity="center" android:layout_gravity="bottom|left"/> <TextView android:layout_width="100dp" android:layout_height="100dp" android:backgro
11、und="#aa0000" android:text="第四個" 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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 老舊小區(qū)改造項(xiàng)目背景分析
- 探索AI技術(shù)在中小學(xué)心理健康教學(xué)中的潛力和前景
- 探究2025年中小學(xué)STEAM教育跨學(xué)科教學(xué)研究與實(shí)踐研究報(bào)告
- 在線游戲行業(yè)的個人信息保護(hù)措施
- 2025年工業(yè)互聯(lián)網(wǎng)平臺射頻識別(RFID)在航空航天發(fā)動機(jī)維護(hù)中的應(yīng)用報(bào)告
- 保險(xiǎn)行業(yè)數(shù)字化理賠服務(wù)效率提升關(guān)鍵因素2025年研究報(bào)告
- 新能源儲能行業(yè)發(fā)展趨勢與市場機(jī)遇分析報(bào)告
- 醫(yī)療設(shè)備與器械的數(shù)字化管理-基于數(shù)字孿生的實(shí)施策略
- 提升智能家居安全性構(gòu)建和諧家庭生活
- 2025年消費(fèi)金融在下沉市場的農(nóng)村金融服務(wù)優(yōu)化研究報(bào)告
- 2025至2030中國數(shù)據(jù)標(biāo)注行業(yè)創(chuàng)新現(xiàn)狀及投融資風(fēng)險(xiǎn)研究報(bào)告
- 中汽研X華為 2024年自動駕駛安全模型研究-2025-04-自動駕駛
- 社會規(guī)則核心是分配:-上層按權(quán)分配-中層按資分配-下層按勞分配
- 2024-2025學(xué)年高中生物每日一題光合作用與細(xì)胞呼吸過程綜合含解析新人教版必修1
- 清真培訓(xùn)考試題及答案
- 2025年北京市西城區(qū)高三一模物理試卷(含答案)
- 2025-2030全球及中國COB發(fā)光二極管行業(yè)市場現(xiàn)狀供需分析及市場深度研究發(fā)展前景及規(guī)劃可行性分析研究報(bào)告
- 群眾文化知識試題及答案
- 2024+ESC指南解讀:血壓升高和高血壓的管理課件
- 2025年-重慶市建筑安全員B證考試題庫附答案
- 初中數(shù)學(xué)八年級三角形及三角形全等專題練習(xí)題(附含答案)
評論
0/150
提交評論