How to make custom windowBackground theme style work on all Android devices?

后端 未结 2 1189
刺人心
刺人心 2021-01-12 03:34

I am trying to get all of my activities to have a custom theme style that should look like this:

\"good\"

2条回答
  •  囚心锁ツ
    2021-01-12 03:55

    I found that the latest version of Android Studio expect that the parent for the style needs to be Theme.AppCompat. Also, it is good style to create a colors.xml file in the values directory (with named color elements between the resource tags). Put your RGB values as values to the named color elements. Reference them in your styles with @color/.

    
    
        #ffb62a23
        #ffedeba6
        #00ff00
    
    
    
    
    

提交回复
热议问题