A

Admin • 833.24K Points
Coach

Q. Which XML attribute is used to set the background color of a view?

  • (A) android:color
  • (B) android:bgColor
  • (C) android:background
  • (D) android:layout_background

Explanation by: Admin

android:background is the correct attribute to set the background color or image.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.