iT邦幫忙

kotlin相關文章
共有 1247 則文章
鐵人賽 Software Development DAY 17

技術 Kotlin 開發第 17 天 PullToRequest ( SwipeRefreshLayout + CardLayout)

這次研究 RecyclerView 的下拉刷新實作,類似於 iOS 的UIRefreshControl 在 Android 中也有 SwipeRefreshL...

鐵人賽 Software Development DAY 16

技術 Kotlin 開發第 16 天 PushMessaging (Firebase + BroadcastManager)

這次通過 Firebase 對設備進行 Push Notification 當設備收到 Push Notification 的時候,將內容通過 Alert...

鐵人賽 Software Development DAY 15

技術 Kotlin 開發第 15 天 Notification( NotificationManager)

Android 的 NotificationManager 是一個用於本地推播的類。這類似於 iOS 的 UILocalNotification(in iOS...

鐵人賽 Software Development DAY 14

技術 Kotlin 開發第 14 天 Ball(Animator)

通過實現各種動畫效果來學習 Android 動畫開發。 ValueAnimator - 實現動畫 ObjectAnimator - 實作動畫 Animato...

鐵人賽 Software Development DAY 13

技術 Kotlin 開發第 13 天 LocalStorage(SharedPreferences)

在 iOS 開發中,我們可以通過 UserDefaults 將一些簡單的內容存在沙盒之中,而 Android 是通過一個叫做 SharedPreferences...

鐵人賽 Software Development DAY 12

技術 Kotlin 開發第 12 天 GithubStars ( OkHttp + RecyclerView)

GithubStars 是一個通過 Github API 請求數據,並通過 RecycleView 顯示的小應用。 提供一個輸入框,用來輸入 Gtihub 用...

鐵人賽 Software Development DAY 11

技術 Kotlin 開發第 11 天 Alarm ( DatePickerDialog + AlertDialog)

一個活動日期確認的應用。 提供日期、時間的選擇 提供一個按鈕,點下後顯示確認日期提示 涉及到的元素 Calendar DatePickerDialog /...

鐵人賽 Software Development DAY 10

技術 Kotlin 開發第 10 天 ProgressControl ( ProgressBar + Handler )

這次通過 Handler 來定時增加 progressBar 的進度,iOS 中可以利用 Timer 來達成。 提供三個按鈕來操作進度、一個 TextVie...

鐵人賽 Software Development DAY 9

技術 Kotlin 開發第 9 天 ImageSlider (ViewPager)

今天通過 ViewPager 做一個類似 iOS 中的 UIScrollView 的功能。 Android 不像 iOS 有原生的 UIPageControl...

鐵人賽 Software Development DAY 8

技術 Kotlin 開發第 8 天 BottomNavigation ( Fragment + Intent)

準備實現 iOS 上 UITabBarController + UINavigationController 的功能,這中搭配經常出現在各種類型的 App 上。...

鐵人賽 Software Development DAY 7

技術 Kotlin 開發第 7 天 MyLocation (GoogleMap)

這次做一個地圖應用,通過 Google Map 顯示自己的位置以及對應的座標。 功能 在首頁提供一個按鈕,點下去會檢查有沒有使用定位功能的權限。 如果沒有權限...

鐵人賽 Software Development DAY 6

技術 Kotlin 開發第 6 天 ImageList (RecyclerView)

今天做一個這樣的練習,可以通過畫面滾動的方式來瀏覽 15 張圖片以及對應的描述。 類似 iOS 開發中會用到的 UITableView / UICollecti...

鐵人賽 Software Development DAY 5

技術 Kotlin 開發第 5 天 Webview Search ( WebView + Keyboard )

今天練習一下使用 WebView。 https://www.google.com.tw/search?q=關鍵詞 1、使用者可以通過輸入框打入關鍵詞跳到 G...

鐵人賽 Software Development DAY 4

技術 Kotlin 開發第 4 天 Scalable ImageView ( MotionEvent )

這次做一個會用到手勢的應用,在 App 中放入一個 ImageView 通過手勢來拖動和縮放。 畫面中間放一個 ImageView ImageView 可以拖...

鐵人賽 Software Development DAY 3

技術 Kotlin 開發第 3 天 image picker (Intent + ImageView)

這一次想了解讀取 Camera / Album 的部分,還有 ImageView 相關的設定。 提供兩個按鈕,一個從相冊取圖片、一個從相機拍照取圖片。 將取...

鐵人賽 Software Development DAY 2

技術 Kotlin 開發第 2 天 Discount (Seekbar + Keyboard)

這是練習寫 Android App 的第二天。 這個應用是讓使用者先輸入一個價格,然後通過拖動 Seekbar 的方式來計算打折情況。 一個 EditVie...

鐵人賽 Software Development DAY 1

技術 Kotlin 開發第 1 天 Tap Counter (Button + TextView)

正式開始練習寫 Android App 的第一天,做一個點擊記數的應用。 一個顯示當前數字的 TextView 一個按鈕可以用來增加數字 右上角一個 rese...