kotlin remove findviewbyid plugin
Remove findViewById Plugin in Kotlin
// Before
import kotlinx.android.synthetic.main.activity_main.*
// After
// No need for findViewbyId
Remove the import statement: Before:
import kotlinx.android.synthetic.main.activity_main.*
After: No need for findViewbyIdExplanation: In Kotlin Android extensions, you can access views directly without the need for
findViewById
. By removing the import statement, you eliminate the need to usefindViewById
for accessing views in your Kotlin code.