Vidyalelo
Computer Science · Q240

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 240

Q240

Which is the correct way to reference bound data in the XML layout?

A.
android:text="@={myDataClass.property}"
Answer
B.
android:text="@={myDataClass}"
C.
android:text="@={myDataClass.property.string}"
D.
android:text="@={myDataClass.bound_data.property}"

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board