讀書筆記[Android Beginning 2] chapter 2 Create a Skeleton Application

A button is an Android widget, and widgets are the user interface elements that you use in your application.


The onCreate() method is invoked when the activity is started. The first thing you should do is chain upward to the superclass, so the stock Android activity initialization can be done.

 

All widgets extend the View base class. You usually build the user interface out of a hierarchy of views.

 

In Android, a button click causes onClick() to be invoked in the OnClickListener instance configured for the button.

 


 


發佈了17 篇原創文章 · 獲贊 4 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章