freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文-基于android平臺的校園通軟件設(shè)計(jì)-資料下載頁

2024-11-16 18:46本頁面

【導(dǎo)讀】學(xué)生姓名:黃舜學(xué)號:10191118. 完成時(shí)間:2020年4月10日

  

【正文】 圖 42 軟件功能圖 文件結(jié)構(gòu)與用途 在程序開發(fā)階段,首先確定“ Android 平臺校園通軟件”的工程名為 MySchool,據(jù)程序模塊設(shè)計(jì)的內(nèi)容,建立 MySchool 工程。 MySchool 工程源代碼的結(jié)構(gòu)如圖 所示。 為了使源代碼文件的結(jié)構(gòu)更加清晰, MySchool 工程設(shè)置了多個(gè)命名空間,分別用來保存用戶界面、數(shù)據(jù)庫和工具實(shí)體的源代碼文件,源代碼文件的名稱以及說明。 《校園通》軟件 首頁 分類 娛樂 影院信息 電影 紀(jì)錄片 校景 查詢 熱門查詢 更多 我的資料 我的課程 我的備忘 我的日程 我的分享 22 圖 42 MySchool 工程的源代碼文件 表 41 MySchool 工程的文件用途說明 Android 的資源文件保存在 /res 的子目錄中。其中、 /res/anim 目錄中保存的是產(chǎn)生動(dòng)畫效果的 XML 文件, /res/drawable/目錄中保存的是圖像文件,包 名 稱 文 件 名 說 明 MainActivity 所在 “我的資料”的 Activity “分類”的 Activity “主頁”的 Activity “更多”的 Activity “搜索”的 Activity 當(dāng)前信息類 23 /res/values 目錄中保存的是用來自定義字符串和顏色的文件, /res/xml 目錄中保存的是 XML 格式的數(shù)據(jù)文件。所有在程序開發(fā)階段可以被調(diào)用的 資源都保存在這些目錄中,具體每個(gè)資源文件的用途可以參考表 : 資源目錄 文 件 說 明 anim 圖片進(jìn)入效果 畫面轉(zhuǎn)換位置移動(dòng)動(dòng)畫效果(從左 進(jìn)入) 畫面轉(zhuǎn)換位置移動(dòng)動(dòng)畫效果(從左 移出) 畫面轉(zhuǎn)換位置移動(dòng)動(dòng)畫效果(從右 進(jìn)入) 畫面轉(zhuǎn)換位置移動(dòng)動(dòng)畫效果(從右 移出) drawable 這個(gè)文件夾里是工程里所用的圖片,此處不贅述。 ?? layout “首頁”的布局 “分類”的布局 “搜索”的布局 ... 還有很多的 layout,不贅述 values 保存樣式的 XML 文件 保存字符串的 XML 的文件 AppWidget 的屬性文件 表 資源文件名稱與用途 程序主要代碼 在介紹 MySchool 的核心代碼前,首先了解一下 ()。 (1) 的部分代碼: public static String TAB_TAG_HOME = home。 public static String TAB_TAG_CHANNEL = channel。 public static String TAB_TAG_ACCOUNT = account。 public static String TAB_TAG_SEARCH = search。 public static String TAB_TAB_MORE = more。 ImageView mBut1, mBut2, mBut3, mBut4, mBut5。 24 TextView mCateText1,mCateText2, mCateText3, mCateText4, mCateText5。 Intent mHomeItent, mChannelIntent, mSearchIntent, mAccountIntent, mMoreIntent。 先聲明了用到的組件。從代碼中可 以看出, MainActivity 的主要功能就是軟件的導(dǎo)航欄。 (2) 的部分代碼: private void findviews(){ fun =(Button)findViewById()。 movie=(Button)findViewById()。 record=(Button)findViewById()。 tourism=(Button)findViewById()。 publicity=(Button)findViewById()。 clips=(Button)findViewById()。 } private void setListensers() { (clickfun)。 (clickmovie)。 (clickrecord)。 (clicktourism)。 (clickpublicity)。 (clickclips)。 } Private clickfun= new (){ public void onClick(View v){ Intent funint = new Intent()。 (, )。 startActivity(funint)。 } }。 從代碼中可以看出, WidgetEntity 類中 有 fun, movie, record, tourism,publicity, clips 這 6 個(gè)功能模塊。而 該頁的功能就是作為這六個(gè)功能的實(shí)現(xiàn)也簡單描述一下。 ( 3) 中的部分代碼 ExpandableListView expandableList。 TreeViewAdapter adapter。 SuperTreeViewAdapter superAdapter。 Button btnNormal, btnSuper。 25 設(shè)置了二級菜單顯示校內(nèi)娛樂,三級菜單顯示校外娛樂 (adapter)。 (new OnChildClickListener() { @Override public boolean onChildClick(ExpandableListView arg0, View arg1, int parent, int children, long arg4) { String str = 歡迎各位同學(xué)積極參加 。 (, str, 300).show()。 return false。 } })。 用 Toast 做了友情小提示。以上是 Toast(透明試彈出型提示框)的實(shí)現(xiàn)代碼,其中包括了顯示內(nèi)容,顯示類型及顯示時(shí)間。 public static final int ItemHeight = 40。// 每項(xiàng)的高度 public static final int PaddingLeft = 30。// 每項(xiàng)的高度 private int myPaddingLeft = 0。// 如果是由 SuperTreeView調(diào)用,則作為子項(xiàng)需要往右移 static public TextView getTextView(Context context) { lp = new ( , ItemHeight)。 TextView textView = new TextView(context)。 (lp)。 ( | )。 return textView。 } public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { TextView textView = getTextView()。 (getChild(groupPosition, childPosition).toString())。 (myPaddingLeft + PaddingLeft, 0, 0, 0)。 return textView。 } public View getGroupView(int groupPosition, boolean isExpanded, 26 View convertView, ViewGroup parent) { TextView textView = getTextView()。 (getGroup(groupPosition).toString())。 (myPaddingLeft + (PaddingLeft 1), 0, 0, 0)。 return textView。 } 二級菜單的具體代碼。 菜單內(nèi)容實(shí)現(xiàn)方式,數(shù)據(jù)繼承位置的設(shè)定,及具體顯 示方式。 (4) 中的部分代碼。 public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder。 if (convertView == null) { convertView = (, null)。 viewHolder = new ViewHolder()。 = (TextView) ()。 = (ImageView) ()。 (viewHolder)。 } else { viewHolder = (ViewHolder) ()。 } ((position).getTitle())。 ((position).getImageId())。 return convertView。 } } 使用 gridView 控件來實(shí)現(xiàn)圖片的顯示,并綁定一個(gè) textview 來實(shí)現(xiàn)文字和圖片成組顯示。 27 用戶界面 在用戶界面設(shè)計(jì)上,采用了咨詢軟件框架結(jié)構(gòu),提供直觀的交互操作。五 個(gè)用戶界面風(fēng)格簡約、操作簡便,用戶體驗(yàn)將非常好。 系統(tǒng)測試 至此已經(jīng)完成了 MySchool工程的代碼編寫工作,在這一節(jié)對 MySchool工程進(jìn)行測試,步驟及結(jié)果如下: (1) 啟動(dòng) Android虛擬機(jī) 在工程名 Myschool上點(diǎn)右鍵,然后選擇“ Run As”,然后選擇“ Android Application”。 Android虛擬機(jī)啟動(dòng)較慢。如下圖所示: 28 (2) “分類”頁功能演示 29 30 5 總結(jié) 經(jīng)過一個(gè)多月的努力, Android 平臺手機(jī)資訊軟件終于完成了。由于對 JAVA濃厚的興趣引發(fā)了我對 Android 的好奇心,從一開始什么都不懂一直摸索完成了這個(gè)軟件。 在這個(gè)過程中,我學(xué)會了很多知識,比如 Android 環(huán)境的搭建、 Intent、Activity、 Service、 ContentProvider、 SQLite 等,但我學(xué)會的最重要的一點(diǎn)是,利用現(xiàn)有的資源去解決問題,在圖書館、在網(wǎng)絡(luò)上尋找答案。 雖然,這個(gè)軟件目前運(yùn)行良好,但是我認(rèn)為代碼的健壯行還很差,在整個(gè)工程的構(gòu)思方面也不足,用戶操作界面還不夠靈活,這些問題還需要今后逐一解決。與此同時(shí),這個(gè)軟件還可以進(jìn)一步擴(kuò)展,例如 “新聞模塊”、“信息分享”等,使功能更加強(qiáng)大,帶給用戶更好的體驗(yàn)與生活的便捷。 31 ag an employment tribunal clai Emloyment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: you don39。t agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly. For more informu, take advice from one of the anisations listed under Fur ther help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1