How to add a gradient to a ImageView nested in a CollapsingToolbar

前端 未结 1 731
说谎
说谎 2020-12-10 04:32

I\'am working on an Android app with material design. I have a detail view with a CollapsingToolbarLayout and a ImageView (works fine so far). Unfortunately the title is not

1条回答
  •  感情败类
    2020-12-10 04:51

    Wrap your ImageView in a FrameLayout and add a View with a background:

    
    
        
        
    
    

    Make sure your gradient is something like this:

    
    
        
        
    
    

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