2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
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.
This commit is contained in:
Mugurell 2020-11-11 20:10:12 +02:00 committed by GitHub
parent f535d467cc
commit 9abf05e7fc

View File

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