2-1-HelloPurrPPT優(yōu)秀課件_第1頁(yè)
2-1-HelloPurrPPT優(yōu)秀課件_第2頁(yè)
2-1-HelloPurrPPT優(yōu)秀課件_第3頁(yè)
2-1-HelloPurrPPT優(yōu)秀課件_第4頁(yè)
2-1-HelloPurrPPT優(yōu)秀課件_第5頁(yè)
已閱讀5頁(yè),還剩25頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、College of Mathematics and Computer Science, Hunan Normal University瞿紹軍湖南師范大學(xué)數(shù)學(xué)與計(jì)算機(jī)科學(xué)學(xué)院College of Mathematics and Computer Science, Hunan Normal Universityn/n/n/http:/http:/ College of Mathematics and Computer Sci

2、ence, Hunan Normal Universityn當(dāng)你觸摸這只貓時(shí),它會(huì)發(fā)出“喵嗚”聲和手機(jī)震動(dòng);當(dāng)你搖晃它時(shí),也將發(fā)出聲音。College of Mathematics and Computer Science, Hunan Normal University用Chrome (谷歌瀏覽器) 打開了App Inventor 主頁(yè)或http:/用你的電子郵件地址賬號(hào)注冊(cè)和登錄College of Mathematics and Computer Science, Hunan Normal UniversityColleg

3、e of Mathematics and Computer Science, Hunan Normal University項(xiàng)目名稱只能由字母、數(shù)字或下劃線組成,且大小寫敏感,名稱中間不能包含空格,如“Hello”和“hello”是兩個(gè)不同的項(xiàng)目名College of Mathematics and Computer Science, Hunan Normal University增加按鈕。在“組件面板”的“用戶界面”中拖動(dòng)“按鈕”到“工作面板”下的“Screen1”。College of Mathematics and Computer Science, Hunan Normal Unive

4、rsity上傳貓的圖片和聲音College of Mathematics and Computer Science, Hunan Normal University修改按鈕的屬性l在“組件屬性”窗口中修改“圖像”和“文本”兩個(gè)屬性。l“圖像”屬性下面的“kitty.png” 。l“文本”屬性里面原有的內(nèi)容“按鈕1文本”刪除掉。College of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal University

5、增加標(biāo)簽l在“組件面板”的“用戶界面”中拖動(dòng)“標(biāo)簽”到“工作面板”下的“Screen1”,用鼠標(biāo)選定添加的“標(biāo)簽1”,在“組件屬性”窗口中修改“背景顏色”為品紅,“字號(hào)”大小為32,“文本”中輸入“Pet the kitty!”。College of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal University增加音效l在“組件面板”的“多媒體”中拖動(dòng)“音效”到“工作面板”下的“Screen1”,無(wú)論把它放

6、在哪里,它都會(huì)出現(xiàn)在預(yù)覽窗口的底部,并被標(biāo)記為“非可視組件【Non-visible components】”。l非可視組件在應(yīng)用中發(fā)揮特定作用,但不會(huì)顯示在用戶界面中。l然后用鼠標(biāo)選定添加的“音效1”,在“組件屬性”窗口中為屬性“源文件”選擇聲音文件“meow.mp3”。College of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal University打開塊編輯器,即邏輯設(shè)計(jì)College of Mathe

7、matics and Computer Science, Hunan Normal University添加按鍵來(lái)播放剛添加聲音College of Mathematics and Computer Science, Hunan Normal University可以參考上節(jié)內(nèi)容連接你的測(cè)試設(shè)備。這里用模擬器測(cè)試結(jié)果。College of Mathematics and Computer Science, Hunan Normal University當(dāng)點(diǎn)擊按鈕時(shí),讓貓咪發(fā)出叫聲和讓手機(jī)震動(dòng)。College of Mathematics and Computer Science, Hunan

8、Normal University在“調(diào)用 音效1.震動(dòng)”塊的右下角寫著“毫秒數(shù)【millisecs】”。塊上的開放插槽表示需要插入其他塊,來(lái)設(shè)定行為的具體方式。College of Mathematics and Computer Science, Hunan Normal University最后單擊數(shù)字“0”,輸入新值“500”College of Mathematics and Computer Science, Hunan Normal University測(cè)試:試試吧!點(diǎn)擊設(shè)備上的按鈕,你不僅會(huì)聽到貓叫聲,還會(huì)感覺到半秒的設(shè)備震動(dòng)。注意:測(cè)試震動(dòng)效果只能在安卓設(shè)備上進(jìn)行,模擬器上無(wú)

9、法測(cè)試。College of Mathematics and Computer Science, Hunan Normal University添加加速度傳感器College of Mathematics and Computer Science, Hunan Normal University添加事件處理程序College of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal University如果你想把應(yīng)用分

10、享給朋友或發(fā)布到應(yīng)用市場(chǎng),就需要把應(yīng)用打包成apk文件。AI2提供了二種打包方式。l打包apk并顯示二維碼l打包apk并下載到電腦College of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal UniversityCollege of Mathematics and Computer Science, Hunan Normal Universityapk文件下載下來(lái)后,默認(rèn)保存在當(dāng)前操作系統(tǒng)的用戶文檔中的“Downloads【下載】”目錄下面。然后可以

溫馨提示

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