Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Add custom tab action button back to toolbar layout. (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Aug 17, 2017
1 parent a4c228d commit 0d741e6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/src/main/res/layout-sw600dp/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,27 @@
android:contentDescription="@string/content_description_stop"
android:src="@drawable/ic_close" />

<!-- The contentDescription is supplied by other applications in the Custom Tab Intent, and
is therefore set programatically. -->
<ImageButton
tools:ignore="contentDescription"
android:id="@+id/customtab_actionbutton"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginBottom="8dp"
android:layout_marginStart="4dp"
android:layout_marginTop="8dp"
android:adjustViewBounds="true"
android:padding="4dp"
android:maxWidth="@dimen/customtabs_toolbar_icon_size"
android:maxHeight="@dimen/customtabs_toolbar_icon_size"
android:scaleType="centerInside"
android:visibility="gone"
tools:visibility="visible"
tools:src="@drawable/ic_delete"
android:layout_gravity="center_vertical"
android:background="?android:attr/selectableItemBackgroundBorderless"/>

<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 0d741e6

Please sign in to comment.