Kotlin By id สิ่งใหม่ต้องเรียนรู้?
สวัสดีครับ วันนี้เราจะมาเรียนรู้สิ่งใหม่จากการ findViewById ของภาษา Kotlin กันนะครับว่ามีวิธีการทำจากภาษา JAVA ทั่วไปยังไงนะครับ เรามาเริ่มกันเลยครับ การเขียนไฟล์ Xml ก็เหมือนกันทั้งสองภาษานะครับ <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.todo.geekcreator.hellokotlin.MainActivity"> <TextView android:id="@+id/textTest" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" app:layout_constraintBottom_toBottomOf="parent" app:layout_cons...





