KC13131211-b04-創(chuàng)建添加相冊(cè)頁面_第1頁
KC13131211-b04-創(chuàng)建添加相冊(cè)頁面_第2頁
KC13131211-b04-創(chuàng)建添加相冊(cè)頁面_第3頁
KC13131211-b04-創(chuàng)建添加相冊(cè)頁面_第4頁
KC13131211-b04-創(chuàng)建添加相冊(cè)頁面_第5頁
已閱讀5頁,還剩1頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、物聯(lián)網(wǎng)應(yīng)用技術(shù)專業(yè)教學(xué)資源庫文檔文檔來源院校開發(fā)文檔編號(hào)旅游日記模塊一創(chuàng)建添加相冊(cè)頁面2015年11月10日目 錄1 任務(wù)描述12 技能目標(biāo)13 任務(wù)實(shí)施14 問題分析1創(chuàng)建日歷相冊(cè)布局1 任務(wù)描述實(shí)現(xiàn)一個(gè)添加相冊(cè)頁面的布局2 技能目標(biāo)掌握android布局文件中控件,如FrameLayout,GridView,Button的使用。3 任務(wù)實(shí)施<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=" android:id="+id/main

2、" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="drawable/background" android:orientation="vertical" android:weightSum="1" > <FrameLayout android:layout_width="fill_parent" android:layo

3、ut_height="wrap_content" > <TextView android:layout_width="fill_parent" android:layout_height="50dip" android:background="drawable/top" android:gravity="center" android:singleLine="true" android:textColor="#ffa555" android:t

4、extSize="20dip" /> <ImageButton android:id="+id/ibback" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|left" android:layout_marginLeft="10dip" android:background="

5、drawable/back" android:src="drawable/iconback" /> <TextView android:id="+id/tv" android:layout_width="fill_parent" android:layout_height="50dip" marqueeRepeatLimit="marquee_forever" android:background="#0000" android:ellipsize=&q

6、uot;marquee" android:focusable="true" android:focusableInTouchMode="true" android:gravity="center" android:paddingLeft="60dip" android:paddingRight="60dip" android:singleLine="true" android:textColor="#ffa555" android:textSiz

7、e="20dip" /> </FrameLayout> <TextView android:id="+id/tvtime" android:layout_width="fill_parent" android:layout_height="40dip" android:gravity="center" android:textColor="#ffa555" android:textSize="20dip" /> <Gri

8、dView android:id="+id/gv" android:layout_width="wrap_content" android:layout_height="350dp" android:layout_margin="5dip" android:gravity="center_horizontal" android:numColumns="2" android:verticalSpacing="30dip" > </GridView

9、> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dip" android:layout_weight="0.19" android:gravity="bottom" > <ImageButton android:id="+id/photo" android:layout_

10、width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left" android:layout_marginLeft="10dip" android:background="drawable/buttonpress" android:src="drawable/picture" /> <ImageButton android:id="+id/ad

11、d" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginLeft="65dip" android:background="drawable/buttonpress" android:src="drawable/add" > </ImageButton>

12、 </LinearLayout></LinearLayout>4 問題分析android:columnWidth設(shè)置列的寬度。android:gravity設(shè)置此組件中的內(nèi)容在組件中的位置??蛇x的值有:top、bottom、left、right、center_vertical、fill_vertical、center_horizontal、fill_horizontal、center、fill、clip_vertical可以多選,用“|”分開。android:horizontalSpacing兩列之間的間距。android:numColumns設(shè)置列數(shù)。取值有2種。(01), 可以設(shè)置為數(shù)字,比如:"2"表示有兩列。(02),可以設(shè)置為“auto_fit”,表示根據(jù)“屏幕寬度”和“GridView寬度”來動(dòng)態(tài)匹配。android:stretchMode縮放模

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論