For #16084 - Match elevation of Tab in Collection to header (#16100)

upstream-sync
ekager 4 years ago committed by GitHub
parent d5cb9c599c
commit 6b8f2001df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,6 +43,9 @@ class TabInCollectionViewHolder(
)
}
// This needs to match the elevation of the CollectionViewHolder for the shadow
view.elevation = view.resources.getDimension(R.dimen.home_collection_elevation)
view.setOnClickListener {
interactor.onCollectionOpenTabClicked(tab)
}

@ -11,7 +11,7 @@
android:background="@drawable/collection_home_list_row_background"
android:clickable="true"
android:clipToPadding="false"
android:elevation="5dp"
android:elevation="@dimen/home_collection_elevation"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground">

@ -91,6 +91,7 @@
<!-- Home Fragment -->
<dimen name="home_fragment_top_toolbar_header_margin">60dp</dimen>
<dimen name="home_collection_elevation">5dp</dimen>
<!-- Browser Fragment -->
<!--The size of the gap between the tab preview and content layout.-->

Loading…
Cancel
Save