This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 393
Why findViewByID? #24
Comments
This code was converted from a Java codebase and I don't think an effort was made to go through and use the Kotlin extensions to simplify view access, but you're right that would be more concise! |
I was just curious because maybe there was some other hidden reason :)
thanks!!
…On Mon, 4 Feb 2019 at 21:18, Sam Stern ***@***.***> wrote:
This code was converted from a Java codebase and I don't think an effort
was made to go through and use the Kotlin extensions to simplify view
access, but you're right that would be more concise!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AP20a7NM7EbibE6ID7cMU0X1FJb5dm_Pks5vKJWMgaJpZM4ah8Bt>
.
|
Kotlin Extensions with synthetic views is not at this moment the “recommended” way. That shouldn’t be taken as a recommendation to not use them. |
Thanks for sharing Pietro.
El mar., 5 feb. 2019 a las 12:23, Pietro F. Maggi (<[email protected]>)
escribió:
… Kotlin Extensions with synthetic views is not at this moment the
“recommended” way. That shouldn’t be taken as a recommendation to not use
them.
Read more about this topic on this reddit thread
<https://old.reddit.com/r/androiddev/comments/ala9p2/why_kotlinx_synthetic_is_no_longer_a_recommended/efdvpkg/>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AP20a_X9EQ9GVjABKdXMqkAUgS3LLupgks5vKWmygaJpZM4ah8Bt>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
santa-tracker-android/cityquiz/src/main/java/com/google/android/apps/santatracker/cityquiz/CityQuizActivity.kt
Line 93 in d773d54
Kotlin allows you to access directly to view id, why do you use
.findViewById()
?The text was updated successfully, but these errors were encountered: