Vidyalelo
Computer Science · Q235

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 235

Q235

Which view attribute do you use to set the width of a View so that it adjusts to fit the content?

A.
android:view_width="wrap"
B.
android:layout_width="wrap_content"
Answer
C.
android:layout_height="wrap_content"
D.
android:layout_width="match_parent"

Answer: Option B

Solution

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