iT邦幫忙

android相關文章
共有 1186 則文章
鐵人賽 Mobile Development DAY 10
Android 十全大補 系列 第 10

技術 [Android 十全大補] RecyclerView as a Pro

我們上一篇介紹了 RecyclerView 的基本使用,但是實務上可能會有更進階的需求,比如說我們可以要取得點擊某一個子 View 的事件,或是我們每個子 Vi...

鐵人賽 Mobile Development DAY 11

技術 [Day 11]MVVM的單元測試

昨天的部份已經介紹過MVVM的範例了,也提到了MVVM模式設計的好處,針對昨天的範例我們來實作一下單元測試。 class ExampleUnitTest {...

鐵人賽 Mobile Development DAY 15
iOS Developer Learning Android 系列 第 15

技術 iOS Developer Learning Android. Lesson 15 - Buttons=[Radio,Chip,Switch,Toggle,Material] (輕鬆實現Tag功能)

本日效果 對照表☘️☘️☘️ Android iOS RadioButton UISegment Switch UISWitch Tog...

鐵人賽 Mobile Development DAY 14
iOS Developer Learning Android 系列 第 14

技術 iOS Developer Learning Android. Lesson 14 - SeekBar + ProgressBar (原生就有的SVProgressHUD)

本日效果 對照表☘️☘️☘️ Android iOS ProgressBar UIActivityIndicatorView SeekBar...

鐵人賽 Mobile Development DAY 13
iOS Developer Learning Android 系列 第 13

技術 iOS Developer Learning Android. Lesson 13 - Spinner + DatePickerDialog (UIPickerView的代替品:下拉選單)

以前如果我們有多個有關連的欄位通常會使用UIPickerView它可以設定多個滾輪Android好像比較沒有類似的東西如果使用下拉選單(Spinner)也是滿常...

鐵人賽 Mobile Development DAY 12
iOS Developer Learning Android 系列 第 12

技術 iOS Developer Learning Android. Lesson 12 - ImageView + ImagePicker (想知道如何把歪掉的照片調正嗎?)

想知道如何把歪掉的照片調正嗎? 故事是這樣的這是一個再簡單不過的功能有個頭像 > 點他 > 問你要上傳照片或拍照 > 更新頭像 但是......

鐵人賽 Mobile Development DAY 11
iOS Developer Learning Android 系列 第 11

技術 iOS Developer Learning Android. Lesson 11 - Button + Dialog (感受一下使用原生鏈式編程彈出Alert吧)

今天主要的重點會著重在Dialog 對照表☘️☘️☘️ Android iOS Button UIButton Dialog UIAlertC...

鐵人賽 Mobile Development DAY 10

技術 [Day 10] MVVM與單元測試

MVVM (Model-View-ViewModel) MVVM是近年在Android開發中比較熱門的設計模式,這是因為google在2017年推出Archit...

鐵人賽 Mobile Development DAY 18

技術 用 Flutter 開發一個 Android App 吧 - Day 18. 個人頁面(大改)

本系列同步發表在 個人部落格,歡迎大家關注~ 個人頁面 - Star 頁面 在 Day 8 的時候,個人頁面的 Star Tab,我並沒有實作 StarRe...

鐵人賽 Mobile Development DAY 17

技術 用 Flutter 開發一個 Android App 吧 - Day 17. 搜尋頁面(改)、自製 GitHub Tiles

本系列同步發表在 個人部落格,歡迎大家關注~ 搜尋頁面 - 改 在 github 這套件的加持下,搜尋頁面調用搜尋 API 也變得非常簡單。 在搜尋頁面上我...

鐵人賽 Mobile Development DAY 16

技術 用 Flutter 開發一個 Android App 吧 - Day 16. 題外話、活動頁(改)及議題頁(改)

本系列同步發表在 個人部落格,歡迎大家關注~ 題外話 到昨天,本人就撐完此系列的一半了,可喜可賀~ 不過在這資訊時代,難免會在意自己文章被別人閱讀的想法或...

鐵人賽 Mobile Development DAY 10
iOS Developer Learning Android 系列 第 10

技術 iOS Developer Learning Android. Lesson 10 - TextView + EditText (不用寫code就可做到跑馬燈跟UITextView自動長高)

從今天開始就是元件篇囉一開始先來張圖嚇嚇你們圖片網址好!安卓贏了~我們明天見! ................不好笑 言歸正傳,趕快進入今天的主題 跑馬燈...

鐵人賽 自我挑戰組 DAY 10

技術 任意移動的RecycleView -使用ItemTouchHelper 左右滑動篇

還記得之前我們對RecycyleView的項目,實現了上下拖曳的實作。那麼今天來實作左右滑動吧 我們一樣需要三項物件 class ItemTouchHelp...

鐵人賽 Mobile Development DAY 8

技術 [Day8] Flutter 移動端儲存方案 SQLite。

因為今天有些臨時的事情,所以今天就來先介紹一下將來會用到的套件。 SQLite 在 flutter 套件叫做 sqflite,套件連結 找到 pubspec.y...

鐵人賽 Mobile Development DAY 9
Android 十全大補 系列 第 9

技術 [Android 十全大補] RecyclerView

RecyclerView 也是一個非常特別值得獨立一篇來介紹的 ViewGroup,幾乎每種 app 都會有列表式的資料,無論是 Facebook 的 feed...

鐵人賽 Mobile Development DAY 9

技術 Day 9 Data Binding (二) 點擊事件

上一篇完成了 viewModel 的基礎使用,那如果要在程式碼裡去改變 viewModel 的值該怎麼寫呢 回到 Activity binding.userNa...

鐵人賽 Mobile Development DAY 7

技術 [Day7] Flutter Drawer 側邊導覽列。

我想在我的待辦清單加上群組的概念,讓我可以加上代辦清單加上群組功能。讓我們可以分類我們的選項。 未來也有想做使用者登入,與同步資料相關功能,所以把使用者畫面留在...

鐵人賽 Mobile Development DAY 8

技術 Day 8 Data Binding (一) 介紹與基本使用

Data Binding 是一個由 Google 推出的 support library,顧名思義,Data Binding 就是將 Data 和 UI 元件綁...

鐵人賽 Mobile Development DAY 9

技術 iOS Developer Learning Android. Lesson 09 - ConstraintLayout (安卓版的AutoLayout揪淨還多了哪些東西?)

昨天我們了解到一些ConstraintLayout的基本常見使用姿勢今天我們繼續介紹一些ConstraintLayout比以前AutoLayout多出來的東西(...

鐵人賽 Mobile Development DAY 8

技術 iOS Developer Learning Android. Lesson 08 - ConstraintLayout (運用AutoLayout的思維安排Android畫面)

大家都說ConstraintLayout真是棒為什麼呢?主要看到的論述都是可以讓layuot更扁平化,進而提高效能,點我看看Google怎麼說。再來就是可以把它...

鐵人賽 自我挑戰組 DAY 8

技術 RecycleView 切換布局 ListView、GridView、瀑布流效果

前幾天我們學習到怎麼去建立不同布局,那麼今天我們來學習怎麼在同一個Activity中作布局切換。 一樣先上圖 Activity class MainActiv...

鐵人賽 Mobile Development DAY 8
Android 十全大補 系列 第 8

技術 [Android 十全大補] ConstraintLayout

當我們回頭看我們的 helloworld 範例,會發現我們一直略過一個出現蠻多次的 View 沒有介紹,那就是 ConstraintLayout。 Constr...

鐵人賽 Mobile Development DAY 6

技術 [Day6] Flutter 將我們的專案全面套上 Provider。

還記得我們在 Day3-Day4 時介紹了一個狀態管理套件,今天我們就要把他套在我們的代辦清單啦~ 首先我們先在 lib/providers/todos.dar...

鐵人賽 Mobile Development DAY 7
Android 十全大補 系列 第 7

技術 [Android 十全大補] Activities

Activity 除了可以跟使用者互動以外,也可以跟其他的 Activity 互動。我們今天就來介紹一下 Activity 之間如何呼叫。 AndroidMan...

鐵人賽 自我挑戰組 DAY 7

技術 RecycleView 瀑布流布局

瀑布流布局是一種新的佈局方式,項目可以自動匹配大小適應螢幕。 在RecycleView中,要呈現瀑布流樣式,需要用到StaggeredGridLayoutMa...

鐵人賽 Mobile Development DAY 7

技術 [Day 7] 解決常見的單元測試難題 - Static

之前章節有提到用Mockito來測試Android的時候常常會遇到JVM static靜態類別無法被測試的問題,可是偏偏不論Android SDK本身或是我們常...

鐵人賽 Mobile Development DAY 7

技術 Day 7 ViewModel (Last) 應用與心得總結

MVVM 如果需要透過 constructor 來傳遞參數給 ViewModel 該怎麼做 ViewModel 在創建時,都是透過 ViewModelProvi...

鐵人賽 Mobile Development DAY 6
Android 十全大補 系列 第 6

技術 [Android 十全大補] User Interaction

我們不希望我們的 app 只是固定的畫面,所以我們必須要得到使用者的輸入然後做些動態改變。在 app 的世界裡,不外乎是點擊、滑動或是鍵盤的輸入或是其他感應器所...

鐵人賽 Mobile Development DAY 6

技術 Day 6 ViewModel (一) 介紹與基本使用

ViewModel 先來看看官方文檔的開頭介紹 The ViewModel class is designed to store and manage UI-...

鐵人賽 自我挑戰組 DAY 6

技術 RecycleView GridView布局

原先Android上是有GridView,以及GridLayout可以用。但是因為效能問題已經被淡出我們常用的元件類別。有時候我們還是需要顯示像是圖示等格狀排列...