發表文章

目前顯示的是有「android」標籤的文章

[Android] RecyclerView | RecyclerView 簡介&應用

圖片
今天的topic是要來簡介一下 RecyclerView這個widget Google Developer上的Guide裡的overview是這樣說的 The RecyclerView widget is a more advanced and flexible version of ListView. 恩...還真是直白呢XDD 沒錯!! RecyclerView 就是個進階且靈活的ListView 還不知道或不清楚ListView的同學可以Google 或參考我的一篇介紹文 [Android]ListView & ArrayAdapter介紹與使用 那怎麼個進階和靈活呢??

[Android]Notification | 建立一個Notification | 01

圖片
首先先引用Android Developers上的 通知( Notification)介紹: A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.  大概的意思是說 notification 是在App以外的地方顯示訊息來提供使用者提醒、App的即時訊息blahblah...之類的,使用者也可以點擊notification來開啟你的App或直接透過notification做一些動作。 這篇文章將會透過一個包含一個Button的Activity來說明如何建立notification,並點擊Button後將會顯示通知。

[Android]ListView & ArrayAdapter介紹與使用

圖片
ListView 是一個可捲動的顯示清單物件的View 我們可以利用Adapter來將資料載入並顯示出來 Android Developer上對Adapter的概觀是這麼說的: An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making a View for each item in the data set. 意思大概是 Adapter物件是View的底層資料與AdapterView之間溝通的橋樑 Adapter除了提供存取物件資料外,也管理為資料集合裡的每個物件創建View。 ((破英文見諒

[android]QR code掃描

圖片
今天一時興起就來寫個code IDE是使用Android Studio 首先呢~先來介紹今天的主角 zxing~~ zxing 是zebra crossing 的縮寫 是開源的 一維、二維條碼辨識的library 首先  這是介面布局 一個Button 兩個TextView