Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Why findViewByID? #24

Open
prcGit opened this issue Feb 4, 2019 · 4 comments
Open

Why findViewByID? #24

prcGit opened this issue Feb 4, 2019 · 4 comments

Comments

@prcGit
Copy link

prcGit commented Feb 4, 2019

Kotlin allows you to access directly to view id, why do you use .findViewById() ?

@samtstern
Copy link
Contributor

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!

@prcGit
Copy link
Author

prcGit commented Feb 4, 2019 via email

@pfmaggi
Copy link

pfmaggi commented Feb 5, 2019

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.

@prcGit
Copy link
Author

prcGit commented Feb 5, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants