to know about Kotlin Kotlin adalah bahasa pemrograman modern, disajikan secara statis yang berjalan pada platform Java Virtual Machine (JVM). Kotlin menggunakan compiler LLVM yang artinya, dapat dikompilasi ke dalam kode JavaScript. source : dicoding.com
License Jetpack Compose is the modern toolkit for building native user interfaces for Android apps. Compose makes it easier and faster to build UIs on Android.
Less Code Do more with less code and avoid entire classes of bugs. Code is simpler and easier to maintain • Intuitive Just describe your UI, and Compose takes care of the rest. As app state changes, your UI automatically updates. • Accelerates Development Compatible with all your existing code so you can adopt when and where you want. Iterate fast with live previews and full Android Studio support. • Powerful Create beautiful apps with direct access to the Android platform APIs and built-in support for Material Design, Dark theme, animations, and more Benefits of using Jetpack Compose
{ Button(onClick = { quantity++ }) { Text("+") } Text(quantity.toString()) Button(onClick = { quantity-- }) { Text("-") } } } State not tracked by Compose This state is not tracked by Compose
way to create state 1. val mutableState = remember { mutableStateOf(default) } 2. var value by remember { mutableStateOf(default) } 3. val (value, setValue) = remember { mutableStateOf(default) }
is available at https://speakerdeck.com/luthfieta : luthfieta : luthfieta : Cendekia Luthfieta NZ Don’t forget to git push your knowledge through your social media. Let’s Grow Together! Thank You