summaryrefslogtreecommitdiffstats
path: root/res/layout/menu_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/menu_item.xml')
-rw-r--r--res/layout/menu_item.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/res/layout/menu_item.xml b/res/layout/menu_item.xml
new file mode 100644
index 00000000..66bbb829
--- /dev/null
+++ b/res/layout/menu_item.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2011 The Chromium Authors. All rights reserved.
+
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+<!-- Layout for each item in the menu popup -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="?android:attr/listPreferredItemHeightSmall"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:background="?android:attr/listChoiceBackgroundIndicator">
+ <TextView
+ android:id="@+id/menu_item_text"
+ android:textAppearance="?android:attr/textAppearanceLargePopupMenu"
+ android:layout_weight="1"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="start"
+ android:gravity="center_vertical"
+ android:singleLine="true"
+ android:paddingEnd="9dp" />
+ <view
+ class="org.chromium.chrome.browser.appmenu.AppMenuItemIcon"
+ android:id="@+id/menu_item_icon"
+ android:layout_weight="0"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="end"
+ android:gravity="center_vertical" />
+</LinearLayout>