J

Jatin Pandit • 395 Points
Valuable

Q. Which attribute is used to make a Button span the full width of the screen?

  • (A) android:layout_alignParentRight="true"
  • (B) android:layout_width="wrap_content"
  • (C) android:layout_width="match_parent"
  • (D) android:gravity="fill"

Explanation by: Jatin Pandit
Using layout_width="match_parent" stretches the Button across the parent’s width.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.