Is it possible to set the background color on glass [gdk-immersion]?

前端 未结 1 1888
广开言路
广开言路 2020-12-20 07:56

my glass project is coming along great.

I am wondering if it is possible to change the background color of a view. I am using an immersion and my entire app runs on

1条回答
  •  囚心锁ツ
    2020-12-20 08:23

    The way I solved this issue is by setting the following line in my layout:

     android:background="@color/black"
    

    And then I created a file in the folder VALUES, called it colors.xml and put the color coding

    
    
        #ff000000
    
    

    I don't remember where I read this, but It did work for my immersion glassware.

    0 讨论(0)
提交回复
热议问题