Explore tweets tagged as #KotlinTips
@kotlin
Kotlin by JetBrains
4 years
You can define an extension to a companion object. #KotlinTips
8
90
667
@anoopmaddasseri
Anoop M Maddasseri
6 years
Checkout, plus (+) and minus (-) operators work for map -๐Ÿ‘‡ #AndroidDev #KotlinTips
0
5
15
@kotlin
Kotlin by JetBrains
4 years
To define a property that computes lazily, use 'by lazy'. #KotlinTips
2
52
336
@sunnat629
Mohi Us Sunnat
6 years
CollectionCheetSheet: 1 #KotlinTips @kotlin
1
3
14
@mertceyhan
mert
4 years
You can implement an interface to your companion object or extend it from a class. #Kotlin #KotlinTips #Android #AndroidDev
5
17
122
@HSalheb
Hadi Salheb
6 years
๐Ÿ“š๐Ÿ“– Kotlin Tips: Koltin scope functions are useful, but sometimes you don't need them! #Kotlin #AndroidDev #KotlinTips #100DaysOfCode
3
33
69
@amitiitbhu
Amit Shekhar
5 years
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
@amitiitbhu
Amit Shekhar
4 years
Learn Kotlin Collection Functions: associateBy Check the example. Learn and Share ๐Ÿš€ #AndroidDev #Kotlin #KotlinTips #Developer #Android
1
19
80
@amitiitbhu
Amit Shekhar
5 years
Kotlin Collection Functions: all Check the example Learn and Share #AndroidDev #Kotlin #KotlinTips #Android #Developer
0
9
80
@amitiitbhu
Amit Shekhar
5 years
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
@waseefakhtar
Waseef Akhtar
6 years
Android Tip: When enabling fullscreen, adjust toolbar margin for cutout displays with this easy hack below ๐Ÿ‘‡ #AndroidDev #100DaysOfCode #Android #Kotlin #KotlinTips
0
11
21
@MohamedTamer42
Mohamed Tamer | Software Engineer
5 years
๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ’ช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
@navczydev
Nav Singh
4 years
#KotlinTips #Kotlin15 The new ๐—ณ๐—ถ๐—ฟ๐˜€๐˜๐—ก๐—ผ๐˜๐—ก๐˜‚๐—น๐—น๐—ข๐—ณ() and ๐—ณ๐—ถ๐—ฟ๐˜€๐˜๐—ก๐—ผ๐˜๐—ก๐˜‚๐—น๐—น๐—ข๐—ณ๐—ข๐—ฟ๐—ก๐˜‚๐—น๐—น() functions combine ๐—บ๐—ฎ๐—ฝ๐—ก๐—ผ๐˜๐—ก๐˜‚๐—น๐—น()with ๐—ณ๐—ถ๐—ฟ๐˜€๐˜() or ๐—ณ๐—ถ๐—ฟ๐˜€๐˜๐—ข๐—ฟ๐—ก๐˜‚๐—น๐—น(). #kotlin #AndroidDev #Android
1
3
11
@kotlin
Kotlin by JetBrains
4 years
#KotlinTips Null-safety is the bread and butter of Kotlin! Use the null-safe call to avoid if-null checks:
4
40
300
@amitiitbhu
Amit Shekhar
3 years
Kotlin Best Practices: Advantage of using const #AndroidDev #Kotlin #KotlinTips #Android
2
9
51
@amitiitbhu
Amit Shekhar
5 years
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
@igorwojda
Igor Wojda ๐Ÿค–
6 years
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
@kotlin
Kotlin by JetBrains
4 years
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