[ 初學 ]

 

[ 快速鍵 / 熱鍵 / Shortcuts ]


[ SDK (Software Development Kit / 軟體開發套件) ]

 

[ 調校 / Debug ]

 

[ Gradle ]

 

[ 啟動另一個 Activity / Start Another Activity ]

  • Start Another Activity | Android Developers 
  • 在 OnClick 事件中
    宣告 Intent intent = new Intent(this, AnotherActivity.class);
    然後呼叫 startActivity(intent);
  • 若要傳遞資訊過去,可以使用 intent.putExtra();

 

[ Style & Themes ]

 

[ Activity 模板(Template) ]

 

[ 材料設計 / Material Design ]

 

[ Property - Constraints & ConstraintLayout ]

  • 使用 ConstraintLayout 来设计 View - 简书 
  • Build a Responsive UI with ConstraintLayout | Android Developers 
  • ConstraintLayout | Android Developers 
  • Error : This view is not constrained. 
    • 發生 : 當拉一個元件到畫面,但不是放在 Layouts 元件中 ,會出現該Error。
    • 問題 : 若沒解決,執行時,該元件會定位在 (0,0) 的位置。
    • 原因 : 沒有設定 Constraints。
      在 [ Build a Responsive UI with ConstraintLayout | Android Developers ] 有提到 : To define a view's position in ConstraintLayout, you must add at least one horizontal and one vertical constraint for the view.
    • 快速解決方法 : 在畫面設計中,選擇Design頁面,在元件上點右鍵,選擇 [ Constraint Layout → Infer Constraints ],將會自動設定相關的Constraints。

 

[ app bar / action bar / tool bar ]

 

[ Navigation Drawer / 隱藏式側選單 ]

 

arrow
arrow
    文章標籤
    Android studio
    全站熱搜
    創作者介紹
    創作者 jsky 的頭像
    jsky

    jsky手札 ~ 走走停停

    jsky 發表在 痞客邦 留言(0) 人氣()