In Android Studio, when referencing layout (GUI) elements, the normal flow is to use code as below: var tv = findViewById(R.id.tv_name) tv = myString But, in Kotlin, Prior Android version 10, it was easy to assign values to layout elements without using find_view_by_id by simply using: tv_name.text = myString However, this has stopped working and … Continue reading How to assign value to text view directly in Android Kotlin
Tag: variable
Simplest explanation to Objects in Object Oriented Programming
Teaching myself to program in Java by following the book Head First Java by Kathy Sierra and Bert Bates has been one of the best things to have happened this year, so far. After trying several years to understand object-oriented programming concepts, finally found this book that provides one of the best introductions. Finally, I … Continue reading Simplest explanation to Objects in Object Oriented Programming