action_menu_item_layout.xml revision e7d468410b3a783560d5158a5798cef1b4b67702
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7  
8          http://www.apache.org/licenses/LICENSE-2.0
9  
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<com.android.internal.view.menu.ActionMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="wrap_content"
19    android:layout_height="wrap_content"
20    android:layout_gravity="center"
21    android:addStatesFromChildren="true"
22    android:background="?attr/selectableItemBackground"
23    android:gravity="center"
24    android:paddingLeft="12dip"
25    android:paddingRight="12dip"
26    android:minWidth="64dip"
27    android:minHeight="?attr/actionBarSize">
28    <ImageButton android:id="@+id/imageButton"
29                 android:layout_width="wrap_content"
30                 android:layout_height="wrap_content"
31                 android:layout_gravity="center"
32                 android:visibility="gone"
33                 android:paddingLeft="4dip"
34                 android:paddingRight="4dip"
35                 android:minHeight="56dip"
36                 android:scaleType="center"
37                 android:background="@null" />
38    <Button android:id="@+id/textButton"
39            android:layout_width="wrap_content"
40            android:layout_height="wrap_content"
41            android:layout_gravity="center"
42            android:visibility="gone"
43            android:textAppearance="?attr/textAppearanceMedium"
44            style="?attr/buttonStyleSmall"
45            android:background="@null"
46            android:paddingLeft="4dip"
47            android:paddingRight="4dip" />
48</com.android.internal.view.menu.ActionMenuItemView>
49