Kotlin Playground

當了幾年的 iOS 工程師,一直都想要了解一下 Android 的開放世界。 在發現和 Swift 極其相似的 Kotlin 之後,打算連續投入 30天的時間來熟悉這個新的世界。

Kotlin Examples

每一天都會做一個例子,並且將心得記錄在 Blog
https://android.devdon.com/?page_id=105

1 - Tap Counter

TapCounter

Blog / Source Code - 2017.11.20

  • Button / Label
  • Event handler
  • Custom menu

2 - SeekBar Discount

SeekBar

Blog / Source Code - 2017.11.21

  • Seekbar
  • EditView
  • Keyboard

3 - Image Picker

Image Picker

Blog / Source Code - 2017.11.22

  • put image into AndroidStudio project
  • open Camera/Album through Intent
  • ImageView

4 - Scalable ImageView

Scalable imageView

Blog / Source Code - 2017.11.23

  • Custom ImageView (Kotlin file + layout xml)
  • Gesture
  • Coordinates

5 - Search on WebView

Scalable imageView

Blog / Source Code - 2017.11.24

  • Webview
  • Keyboard
  • TextView Event

6 - Image List (RecyclerView)

Scalable imageView

Blog / Source Code - 2017.11.25

  • RecyclerView
  • Adapter / ViewHolder
  • model (data class)

7 - MyLocation (GoogleMap)

Scalable imageView

Blog / Source Code - 2017.11.26

  • GoogleMap
  • LocationManager
  • uses-permission
  • change activity by intent

8 - BottomNavigation

Scalable imageView

Blog / Source Code - 2017.11.27

  • Fragment
  • BottomNavigation
  • icon in SVG
  • intent with flag

9 - ImageSlider

Scalable imageView

Blog / Source Code - 2017.11.28

  • ViewPager
  • PagerAdapter
  • Fragment

10 - ProgressBarHandler

Scalable imageView

Blog / Source Code - 2017.11.29

  • ProgressBar
  • Handler

11 - ActivitySchedule

Scalable imageView

Blog / Source Code - 2017.11.30

  • Calendar
  • DatePickerDialog / TimePickerDialog
  • SimpleDateFormat
  • AlertDialog

12 - GithubStars

Scalable imageView

Blog / Source Code - 2017.12.01

  • OkHttp
  • RecyclerView
  • Intent & Parcelable

13 - LocalStorage

Scalable imageView

Blog / Source Code - 2017.12.02

  • SharedPreferences

14 - Ball

Scalable imageView

Blog / Source Code - 2017.12.03

  • ValueAnimator
  • ObjectAnimator
  • AnimatorSet

15 - Notification

Notification

Blog / Source Code - 2017.12.04

  • Notification.Builder
  • NotificationManager

16 - PushMessaging

Notification

Blog / Source Code - 2017.12.05

  • Firebase
  • BroadcastReceiver

17 - PullToRequest

PullToRequest

Blog / Source Code

  • GridLayoutManager
  • CardView
  • SwipeRefreshLayout

18 - SlideMenu

SlideMenu

Blog / Source Code

  • DrawerActivity
  • NavigationView
  • Toolbar

19 - LittleBirdSound

Little Bird Sound

Blog / Source Code

  • MediaPlayer
  • MediaRecorder

20 - ActivityTransition

ActivityTransition

Blog / Source Code

  • Transition

21 - LayoutSwitch

ActivityTransition

Blog / Source Code

  • GridLayoutManager
  • RecyclerView

22 - LocalDatabase

Local Database

Blog / SourceCode

  • SQLite
  • SQLiteOpenHelper

23 - GoogleVoice

GoogleVoice

Blog / SourceCode

  • Android.Speech
  • ACTION RECOGNIZE SPEECH
  • RecognizerIntent

24 - Painter

Painter

Blog / Source Code

  • View
  • Canvas
  • File
  • Bitmap

25 - FaceRecognizer

FaceRecognizer

Blog / Source Code

  • Face Detector
  • Bitmap
  • Canvas

26 - ActionSend

ActionSend

Blog / Source Code

  • Intent
  • Intent Filter

27 - ShakeShake

ShakeShake

Blog / Source Code

  • SensorManager
  • Vibrator

28 - Parks

Parks

Blog / Source Code

  • TabLayout
  • ViewPager
  • FragmentPagerAdapter

29 - ShowView

ShowView

Blog / Source Code

  • PopupWindow
  • FloatingActionButton
  • Animation

30 - VideoPlayer

VideoPlayer

Blog / Source Code