Change background of LinearLayout in Android

前端 未结 6 1591
轻奢々
轻奢々 2020-12-24 00:54

I am working on an Android application. I want to change the background of a LinearLayout element.

What attribute can I set in order to change its background?

6条回答
  •  梦毁少年i
    2020-12-24 01:05

     android:background="@drawable/ic_launcher"
    

    should be included inside Layout tab. where ic_launcher is image name that u can put inside project folder/res/drawable . you can copy any number of images and make it as background

提交回复
热议问题