Examveda

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"

C. android:layout_height="wrap_content"

D. android:layout_width="match_parent"

Answer: Option B


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.