大型軟件項目實踐 實驗報告_第1頁
大型軟件項目實踐 實驗報告_第2頁
大型軟件項目實踐 實驗報告_第3頁
大型軟件項目實踐 實驗報告_第4頁
大型軟件項目實踐 實驗報告_第5頁
已閱讀5頁,還剩6頁未讀 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

學(xué)生學(xué)號實驗課成績武漢理工大學(xué)學(xué)生實驗報告書課程名稱大型軟件工程項目綜合設(shè)計開課學(xué)院指導(dǎo)老師學(xué)生姓名專業(yè)班級201—201學(xué)年第學(xué)期實驗課程名稱:大型軟件工程項目綜合設(shè)計實驗項目名稱Android應(yīng)用開發(fā)實驗成績實驗者專業(yè)班級組別同組者實驗日期第一部分:實驗分析與設(shè)計(可加頁)實驗內(nèi)容描述(問題域描述)實驗一配置Android環(huán)境實驗類型:驗證性實驗要求:必做實驗?zāi)康模毫私釧ndroidSDK的安裝、配置、使用。熟悉ADT組件,開發(fā)工具eclipse的使用。熟悉Android程序的基本框架。實驗二HelloWorld程序?qū)崿F(xiàn)實驗類型:驗證性實驗要求:必做實驗?zāi)康模毫私釧ndroid編程原理掌握界面控件設(shè)計實驗三:熟悉布局類實驗類型:驗證性實驗要求:必做實驗?zāi)康模?.了解LayoutParams類的使用2.掌握LinerLayout類的使用3.掌握TableLayout類的使用實驗基本原理與設(shè)計(包括實驗方案設(shè)計,實驗手段的確定,試驗步驟等,用硬件邏輯或者算法描述)實驗一:安裝JDK1.6安裝配置AndroidSDK在Eclipse的工具欄中,選擇“AndroidAVDManger”,出現(xiàn)“AndroidVirtualDeviceManager”窗口;界面中間的列表表示了目前可以使用的Android虛擬設(shè)備,在沒有虛擬設(shè)備的情況下點擊右側(cè)的New選擇建立一個虛擬設(shè)備。實驗二:打開解壓后的文件夾中的eclipse。點擊“File”—“New”-“Project”-“AndroidProject”,創(chuàng)建HelloWorld項目。觀察項目目錄結(jié)構(gòu),對HelloWorld.java進行修改選擇項目HelloWorld并點擊“RunAs”->”AndroidApplication”,即可運行實驗三:練習(xí)LinerLayout布局。新建AndroidXMLfile,起名為Line1.xml,并把程序啟動時的布局設(shè)為line1.xml。練習(xí)TableLayout布局。新建AndroidXMLfile,起名為table.xml,并把程序啟動時的布局設(shè)為table.xml。三、主要儀器設(shè)備及耗材計算機,安卓手機,數(shù)據(jù)線第二部分:實驗調(diào)試與結(jié)果分析(可加頁)調(diào)試過程(包括調(diào)試方法描述、實驗數(shù)據(jù)記錄,實驗現(xiàn)象記錄,實驗過程發(fā)現(xiàn)的問題等)實驗一:使用AndroidStudio作為開發(fā)工具選擇配置參數(shù)創(chuàng)建完成實驗二:創(chuàng)建新的HelloWorld項目創(chuàng)建成功修改代碼:實驗三:(1)line1.xml代碼修改如下:<?xmlversion="1.0"encoding="utf-8"?>

<LinearLayoutxmlns:android="/apk/res/android"

android:orientation="vertical"

android:layout_width="fill_parent"

android:layout_height="wrap_content">

<EditText

android:layout_width="fill_parent"

android:layout_height="wrap_content"></EditText>

<LinearLayout

android:orientation="horizontal"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:gravity="right">

<Button

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="確定"></Button>

<Button

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="取消"></Button>

</LinearLayout>

</LinearLayout>MainActivity修改如下:protectedvoidonCreate(BundlesavedInstanceState){

super.onCreate(savedInstanceState);

//TextViewtextView=newTextView(this);

//textView.setText("helloworld");

//setContentView(textView);

setContentView(R.layout.line1);

}(2)table1.xml文件修改如下:<?xmlversion="1.0"encoding="utf-8"?>

<TableLayoutxmlns:android="/apk/res/android"

android:id="@+id/menu"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:stretchColumns="1"

>

<TableRow>

<TextView

android:layout_column="1"

android:text="打開..."

android:padding="3dip"/>

<TextView

android:text="Ctrl-O"

android:layout_gravity="right"

android:padding="3dip"/>

</TableRow>

<TableRow>

<TextView

android:layout_column="1"

android:text="保存..."

android:padding="3dip"/>

<TextView

android:text="Ctrl-S"

android:layout_gravity="right"

android:padding="3dip"/>

</TableRow>

<TableRow>

<TextView

android:layout_column="1"

android:text="另存為..."

android:padding="3dip"/>

<TextView

android:text="Ctrl-Shift-S"

android:layout_gravity="right"

android:padding="3dip"/>

</TableRow>

<Viewandroid:layout_height="2dip"

android:background="#ff909090"/>

<TableRow>

<TextView

android:text="*"

android:padding="3dip"/>

<TextView

android:text="導(dǎo)入..."

android:padding="3dip"/>

</TableRow>

<TableRow>

<TextView

android:text="*"

android:padding="3dip"/>

<TextView

android:text="導(dǎo)出..."

android:padding="3dip"/>

<TextView

android:text="Ctrl-E"

android:gravity="right"

android:padding="3dip"/>

</TableRow>

<Viewandroid:layout_height="2dip"

android:background="#ff909090"/>

<TableRow>

<TextView

android:layout_column="1"

android:text="退出"

android:padding="3dip"/></TableRow>

<TableRow>

<Button

android:id="@+id/mybutton"

android:layout_column="1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:gravity="center"

android:text="隱藏"

/>

</TableRow>

</TableLayout>MainActivity修改如下:二、實驗結(jié)果及分析(包括結(jié)果描述、實驗現(xiàn)象分析、影響因素討論、綜合分析和結(jié)論等)實驗一:打開虛擬機實

溫馨提示

  • 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論