Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / floating_popup_menu_button.xml
blob6cbe8c80d601ace74f308d750066a50c80e6e545
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /* Copyright 2015, The Android Open Source Project
4 **
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
8 **
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.
17 -->
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">
29     <ImageView
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" />
43     <TextView
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"
48         android:padding="0dp"
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" />
62 </LinearLayout>