2016年2月2日 星期二

Hello Android & Multiscreen

2016/02/02
  • Main.axml:Layout設計總管
  • SetContentView(Resource.Layout.Main); = 設定主Layout檔案,此行即以Main.axml為主要Layout檔。想:可控制此項切換Layout版型?
2016/02/03
  • Android程式可視為由多區塊組合而成,可分類成Activity及Service。Activity可看成一項獨立功能,而且都會對應到UI,如登入畫面或LIst清單等,Service即是背景程式,不會有畫面,如音樂播放解碼程式等。
  • Intent:各Block之訊息傳遞,使用時機如camera app to take and save, gathering location information, or navigating from one screen to the next.(常用)
  • 以intent方式,啟動另一個activity

  •  以intent方式,Launching Another Application with an Intent
  • String Resources – In our Phoneword application, we set the text of the CallHistoryButton to "@string/callHistory". The @string syntax means that the string’s value is stored in the String Resources File, Strings.xml. We entered the following value for the callHistory string in Strings.xml。

沒有留言:

張貼留言