Explore tweets tagged as #KotlinTips
You can implement an interface to your companion object or extend it from a class. #Kotlin #KotlinTips #Android #AndroidDev
5
17
122
๐๐ Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin
#AndroidDev
#KotlinTips
#100DaysOfCode
3
33
69
Kotlin filtering function - partition(): filters a collection by a predicate and keeps the elements that don't match it in a separate list. Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev #Android
3
34
139
Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share ๐ #AndroidDev #Kotlin #KotlinTips #Developer #Android
1
19
80
Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer
0
9
80
Kotlin - Idiomatic way to remove duplicate strings from an array - distinct() - toSet() - toMutableSet() - toHashSet() Share it if you learned something new. #Kotlin #KotlinTips #AndroidDev
1
27
104
Android Tip: When enabling fullscreen, adjust toolbar margin for cutout displays with this easy hack below ๐ #AndroidDev #100DaysOfCode #Android #Kotlin #KotlinTips
0
11
21
๐จโ๐ป๐ชAs a result of what I learned today With JetPack Compose. 1- Composable functions 2- Add a text element 3- Define a composable function 4- Preview your function in Android Studio๐๐ #kotlinTips
#Kotlin
#Java #KMM
#coding
#Jetpack
#coder #android
#100daysofcode #code #github
1
6
15
#KotlinTips #Kotlin15 The new ๐ณ๐ถ๐ฟ๐๐๐ก๐ผ๐๐ก๐๐น๐น๐ข๐ณ() and ๐ณ๐ถ๐ฟ๐๐๐ก๐ผ๐๐ก๐๐น๐น๐ข๐ณ๐ข๐ฟ๐ก๐๐น๐น() functions combine ๐บ๐ฎ๐ฝ๐ก๐ผ๐๐ก๐๐น๐น()with ๐ณ๐ถ๐ฟ๐๐() or ๐ณ๐ถ๐ฟ๐๐๐ข๐ฟ๐ก๐๐น๐น(). #kotlin #AndroidDev #Android
1
3
11
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
4
40
300
2
9
51
Kotlin Collection Functions are useful, take advantage of it while coding. Use them based on your use-cases. Check the example Share it if you learned something new. #AndroidDev #Kotlin #KotlinTips
1
15
55
Inspired by @JorgeCastilloPr tweet I decided to present & describe various ways of exposing LiveData from ViewModel to a View (usually Fragment) #AndroidDev #Kotlin #KotlinTips #LiveData
10
39
120
If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
10
48
383