(Android) How to fill ListView background and preserve header transparency

前端 未结 3 1295
不思量自难忘°
不思量自难忘° 2021-02-19 11:18

I have a custom image background that fills the entire screen behind a ListView.

The ListView has a header that contains some data, then a transparent 10dp margin(allowi

3条回答
  •  清歌不尽
    2021-02-19 11:33

    I have found solution to this, if anyone still needs it. I just made drawable that has top colored as header background like this:

    
    
    
    
        
            
            
        
    
    
    

    I know it's possible to use NavigationView now but I needed quick fix for current app.

提交回复
热议问题