I'm using a gridlayout and when I add the cardviews there's a gray margin covering the sides. Is there any way I can remove/hide it? I'm still exploring android studio.
            Asked
            
        
        
            Active
            
        
            Viewed 35 times
        
    0
            
            
        - 
                    Please show code of Layout contains CardView and the one that contains RecyclerView – Hafiza May 06 '21 at 07:42
 - 
                    `android:clipToPadding="false"` – Usama Altaf May 06 '21 at 08:14
 
1 Answers
1
            
            
        Already answered on these links
CardView inside RecyclerView has extra margins
Unnecessary padding in CardView?
useCompatPadding=true
        Mohit Ajwani
        
- 1,328
 - 12
 - 24
 
