How to override standart padding in CardView while using cardUseCompatPadding?
问题 When I use cardUseCompatPadding to show shadow in my card view, top padding is bigger than left one. How to make both padding equal, because my ribbon looking not beautiful, it's bigger on top? Thanks. <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Green triangles for badge --> <FrameLayout android:id="@+id/ribbon_parts" android:layout_width="58dp" android:layout_height="58dp" android:background="@drawable/ic_ribbon_parts" android:visibility="gone"