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

付費下載

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

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

android:padding="3dip"/>

</TableRow>

<TableRow>

<TextView

android:text="*"

android:padding="3dip"/>

<TextView

android:text="導出..."

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修改如下:二、實驗結果及分析(包括結果描述、實驗現象分析、影響因素討論、綜合分析和結論等)實驗一:打開虛擬機實

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論