For #16500 - Ensure CardView clips ImageView on lower APIs (#16507)

ImageViews are normally not clipped but extend to cover the entire width and
height set.
CardViews as a parent can help with that but on lower APIS they still need a
shapeAppearance which is a property already in the added style.
upstream-sync
Mugurell 4 years ago committed by GitHub
parent c427ebf8d5
commit c3179512de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,6 +88,7 @@ A FrameLayout here is an efficient way of having a views stack while allowing:
<androidx.cardview.widget.CardView
android:id="@+id/mozac_browser_tabstray_card"
style="@style/Widget.MaterialComponents.CardView"
android:layout_width="match_parent"
android:layout_height="@dimen/tab_tray_grid_item_thumbnail_height"
android:backgroundTint="?tabTrayThumbnailItemBackground"

Loading…
Cancel
Save