最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

安卓期末大作業(yè)——養(yǎng)貓論壇(源碼+任務書)

2022-12-28 23:07 作者:ChatGPT云炬學長  | 我要投稿
{"ops":[{"insert":"1.課題的作用和意義"},{"attributes":{"header":1},"insert":"\n"},{"attributes":{"align":"justify"},"insert":"\n"},{"insert":"隨著我國孤獨人口和丁克群體的增長,人們迫切需要一個事務來宣泄自己的感情,寵物就是一個最好的選擇。對于普通民眾,寵物的花銷相對較低,大部分人都足以供給,且隨著我國人口老齡化的加重(2020年中國65歲及以上人口已達到13.5%),結(jié)婚率的降低和離婚率的升高導致了我國新生兒出生比例越來越低,2020年僅8.5%左右。受此影響,越來越多的普通民眾選擇養(yǎng)育寵物來減少孤獨感,而寵物貓因其“宅家”的性格深受民眾的喜愛,預計未來市場發(fā)展前景廣闊。2021年中國主要寵物主年齡分布主要集中在90后-95后,其中就養(yǎng)育寵物貓的寵物主而言,也主要為為90后,2021年占比35%,同時80年代前的貓主人也有9%。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"1.課題綜述"},{"attributes":{"align":"justify"},"insert":"\n"},{"insert":"行業(yè)規(guī)模與增長:2020年我國寵物行業(yè)市場規(guī)模接近3000億元,受政策、經(jīng)濟、社會和技術(shù)因素驅(qū)動,以及疫情帶來的更多潛在養(yǎng)寵人群及情感消費,未來三年行業(yè)將繼續(xù)保持平穩(wěn)增長,復合增速預計14.2%,到2023年規(guī)模將達到4456億元。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"寵物特征:寵物類型以犬貓為主,更多一線城市居民和90后因為身份和個性原因養(yǎng)水族或異寵,多類養(yǎng)寵成趨勢。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"寵物主描摹:新時代已婚家庭進階養(yǎng)寵主流人群,他們?yōu)閷櫸镔x予情感角色,追求健康、快樂養(yǎng)寵,同時顯現(xiàn)出智能養(yǎng)寵趨勢。疫情催生更多年輕人進階貓主,新晉貓主精細化養(yǎng)寵理念更成熟。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"寵物消費熱點:隨著精細化養(yǎng)寵趨勢的深入,寵物消費類目日漸豐富。天然糧、有機糧受青睞;寵物零食也為寵物主提供了更多選擇;用品方面安全性和設計便捷受關(guān)注,智能和顏值成趨勢。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"行業(yè)趨勢展望:貓經(jīng)濟崛起,貓主消費增長態(tài)勢強勁;國貨品質(zhì)提升和養(yǎng)寵理性化趨勢將促進國貨潮廣泛化;養(yǎng)寵下沉將成為寵物行業(yè)增量的新機會;寵物線上醫(yī)療模式將成為線下醫(yī)療的重要補充;寵物服務需求向多樣化發(fā)展;全渠道運營模式將成為商家未來發(fā)展擴大的戰(zhàn)略通道。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"結(jié)合課上所學知識和貓寵行業(yè)背景,設計了這款貓咪社區(qū)APP。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"1.完成思路與方法"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"3.1功能需求分析"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"此APP主要可以養(yǎng)貓愛好者的注冊登錄、帖子瀏覽和發(fā)帖評論功能"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"?數(shù)據(jù)庫設計"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"sqlite是AndroID系統(tǒng)采用的一種開源的輕量級的關(guān)系型的數(shù)據(jù)庫,AndroID中允許每個應用程序都擁有自己獨立的數(shù)據(jù)庫,每個應用程序的數(shù)據(jù)庫的位置一般在/data/data//databases中。為了方便開發(fā)人員的使用,AndroiD的API對增刪查改實現(xiàn)了封裝,通過sqliteOpenHelper類可以方便的實現(xiàn)對數(shù)據(jù)庫的創(chuàng)建和管理操作。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"?????貓咪社區(qū)帖子字段如表所示:"},{"attributes":{"align":"justify"},"insert":"\n\n\n"},{"insert":"3.3系統(tǒng)流程圖"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"3.4 UI設計"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"(1)注冊界面和登錄界面"},{"attributes":{"align":"justify"},"insert":"\n"},{"insert":"??????"},{"attributes":{"align":"justify"},"insert":"\n"},{"insert":"(2)首頁、帖子詳情頁、發(fā)帖頁"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"1.個人中心"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"3.5關(guān)鍵技術(shù)和存在的問題"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"關(guān)鍵技術(shù)1:注冊非空驗證和保存用戶數(shù)據(jù)"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"if(CheckInput()) {"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????User?user = new User();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????user.setUsername(tvStuNumber.getText().toString());"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????user.setPassword(tvStuPwd.getText().toString());"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????UserDbHelper?dbHelper = new UserDbHelper(getApplicationContext(),UserDbHelper.DB_NAME,null,1);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????dbHelper.addUser(user);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????Toast.makeText(RegisterActivity.this,\"恭喜你注冊成功!\",Toast.LENGTH_SHORT).show();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????//銷毀當前界面"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????finish();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????}"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"關(guān)鍵技術(shù)2:登錄驗證"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"//如果sqlite數(shù)據(jù)庫可以找到,則輸出登錄成功,并跳轉(zhuǎn)到主界面"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????if(user.getUsername().equals(EtStuNumber.getText().toString())?&& user.getPassword().equals(EtStuPwd.getText().toString()) ) {"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????flag?= true;"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????Toast.makeText(LoginActivity.this,\"恭喜你登錄成功!\",Toast.LENGTH_SHORT).show();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????Intent?intent = new Intent(LoginActivity.this, MainActivity.class);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????Bundle?bundle = new Bundle();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????username?= EtStuNumber.getText().toString();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????bundle.putString(\"username\",username);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????intent.putExtras(bundle);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????????startActivity(intent);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????????}?"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"關(guān)鍵技術(shù)3:發(fā)帖圖片上傳"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"//把圖片先轉(zhuǎn)化成bitmap格式"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????BitmapDrawable?drawable = (BitmapDrawable) ivPhoto.getDrawable();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????Bitmap?bitmap = drawable.getBitmap();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????//二進制數(shù)組輸出流"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????ByteArrayOutputStream?byStream = new ByteArrayOutputStream();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????//將圖片壓縮成質(zhì)量為100的PNG格式圖片"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????bitmap.compress(Bitmap.CompressFormat.PNG,?100, byStream);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????//把輸出流轉(zhuǎn)換為二進制數(shù)組"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????byte[]?byteArray = byStream.toByteArray();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????????commodity.setPicture(byteArray);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"@Override"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????protected?void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????if?(requestCode == 1) {"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????//從相冊返回的數(shù)據(jù)"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????if?(data != null) {"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????//得到圖片的全路徑"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????Uri?uri = data.getData();"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????????ivPhoto.setImageURI(uri);"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????????}"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????????}"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"????}"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"存在的問題:帖子描述文字太多的話會導致首頁排版混亂,需要列表項樣式進行進一步修正"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"4. 收獲總結(jié)"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"每次的項目都會出現(xiàn)一些的問題,但是都通過了百度或者問班上刻苦的同學,還是能將問題解決。我常常和我們宿舍的同學交流安卓,我們相互彌補我們的不足,這樣我們就能在學習的路上越走越遠,在互相的幫助中,我們相互學習了一些不一樣的知識來增加專業(yè)知識的知識量。安卓這一科目對我們來說是非常重要的科目,在本學期的學科里面,安卓是最有代表性的科目,它是當今我們生活中最重要的一樣東西之一的手機上所使用的代碼,我們每天都要使用手機,而手機則需要使用代碼程序,所以通過這次的學習,我對手機的開發(fā)又有了新的認識與理解。"},{"attributes":{"align":"justify"},"insert":"\n\n"},{"insert":"在安卓的開發(fā)中,首先學習了安卓的主資源布局控件,然后在學習到了java代碼所使用的邏輯知識。從開始的單用布局activity_main再到后面的MainActivity,學習到了許多知識,但是我的自學能力和自覺性還是不夠強,始終無法學習到非常精妙的程度,適配器也還是不夠熟練,在假期的時候,我希望我更能系統(tǒng)化的學習安卓這門課程!"},{"attributes":{"align":"justify"},"insert":"\n"},{"attributes":{"color":"#7d90a9","link":"https://yunjunet.cn/568099.html"},"insert":"源碼鏈接:https://yunjunet.cn/568099.html"},{"attributes":{"align":"justify","header":1},"insert":"\n"},{"insert":"\n"}]}

安卓期末大作業(yè)——養(yǎng)貓論壇(源碼+任務書)的評論 (共 條)

分享到微博請遵守國家法律
郯城县| 于田县| 江油市| 米易县| 平阴县| 巴楚县| 龙山县| 顺平县| 武鸣县| 金川县| 从江县| 岳阳县| 洛隆县| 泰宁县| 澄迈县| 吉林市| 文山县| 灵石县| 雷山县| 鸡泽县| 大理市| 宿迁市| 镇安县| 来宾市| 同仁县| 定陶县| 吴川市| 涪陵区| 灌南县| 会理县| 满洲里市| 江安县| 冷水江市| 晋城| 江达县| 海安县| 玛纳斯县| 高邮市| 香格里拉县| 郯城县| 景德镇市|