How to change color of drawable shapes in android

前端 未结 6 900
时光取名叫无心
时光取名叫无心 2020-12-09 15:09

I am developing small android application in which I set drawable resource as background for linear layout. Now what I want to do change background color of linear layout dy

6条回答
  •  Happy的楠姐
    2020-12-09 16:00

    One approach would be to create a second drawable XML with the 2nd color and then change the background of the layout with the 2nd drawable.

提交回复
热议问题