Cardview - white border around card

前端 未结 4 1514
忘掉有多难
忘掉有多难 2020-12-13 06:54

I am using a cardview as the root of a custom view I am writing. I using the v7 support library. My XML looks like this:



        
4条回答
  •  执笔经年
    2020-12-13 07:40

    I know it's a bit late, but for anyone having a similar problem:

    I had the same issue: A white border was shown on pre-lollipop devices.

    I solved it setting the cardPreventCornerOverlap to false on your XML.

    Like this:

    
    
        
    
            
        
    
    

    Hope this helps!

提交回复
热议问题