1 <?xml version="1.0" encoding="utf-8"?>
3 /* Copyright 2015, The Android Open Source Project
5 ** Licensed under the Apache License, Version 2.0 (the "License");
6 ** you may not use this file except in compliance with the License.
7 ** You may obtain a copy of the License at
9 ** http://www.apache.org/licenses/LICENSE-2.0
11 ** Unless required by applicable law or agreed to in writing, software
12 ** distributed under the License is distributed on an "AS IS" BASIS,
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ** See the License for the specific language governing permissions and
15 ** limitations under the License.
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:orientation="horizontal"
22 android:minWidth="@dimen/floating_toolbar_menu_button_minimum_width"
23 android:minHeight="@dimen/floating_toolbar_height"
24 android:paddingStart="@dimen/floating_toolbar_menu_button_side_padding"
25 android:paddingEnd="@dimen/floating_toolbar_menu_button_side_padding"
26 android:paddingTop="0dp"
27 android:paddingBottom="0dp"
28 android:background="?attr/floatingToolbarItemBackgroundDrawable">
30 android:id="@+id/floating_toolbar_menu_item_image"
31 android:layout_width="@dimen/floating_toolbar_menu_image_width"
32 android:layout_height="@dimen/floating_toolbar_height"
33 android:paddingTop="@dimen/floating_toolbar_menu_image_button_vertical_padding"
34 android:paddingStart="0dp"
35 android:paddingBottom="@dimen/floating_toolbar_menu_image_button_vertical_padding"
36 android:paddingEnd="0dp"
37 android:layout_margin="0dp"
38 android:scaleType="centerInside"
39 android:background="@null"
40 android:focusable="false"
41 android:focusableInTouchMode="false"
42 android:importantForAccessibility="no" />
44 android:id="@+id/floating_toolbar_menu_item_text"
45 android:layout_width="wrap_content"
46 android:layout_height="@dimen/floating_toolbar_height"
47 android:textAppearance="?android:attr/textAppearanceListItemSmall"
49 android:paddingStart="@dimen/floating_toolbar_menu_button_side_padding"
50 android:layout_margin="0dp"
51 android:gravity="center"
52 android:singleLine="true"
53 android:ellipsize="end"
54 android:fontFamily="sans-serif-medium"
55 android:textSize="@dimen/floating_toolbar_text_size"
56 android:textAllCaps="true"
57 android:textColor="?attr/floatingToolbarForegroundColor"
58 android:background="@null"
59 android:focusable="false"
60 android:focusableInTouchMode="false"
61 android:importantForAccessibility="no" />