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

前端 未结 1 1896
广开言路
广开言路 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

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <color name="black">#ff000000</color>
    </resources>
    

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

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