Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: chrome/android/java/res/layout/menu_item.xml

Issue 79573003: Upstreaming AppMenu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually add tvdpi Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/res/layout/menu_icon_row.xml ('k') | chrome/android/java/res/values-hdpi/dimens.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/menu_item.xml
diff --git a/chrome/android/java/res/layout/menu_item.xml b/chrome/android/java/res/layout/menu_item.xml
new file mode 100644
index 0000000000000000000000000000000000000000..cc90a2f51e689771380e2484ad37fcf0c51775f7
--- /dev/null
+++ b/chrome/android/java/res/layout/menu_item.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 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="wrap_content"
+ android:background="?android:attr/selectableItemBackground">
+ <TextView
+ android:id="@+id/menu_item_text"
+ android:textAppearance="?android:attr/textAppearanceLargePopupMenu"
+ android:layout_weight="1"
+ android:layout_width="wrap_content"
+ android:layout_height="?android:attr/listPreferredItemHeightSmall"
+ android:layout_gravity="start"
+ android:gravity="center_vertical"
+ android:singleLine="true"
+ android:paddingStart="9dp"
+ android:paddingEnd="9dp" />
+ <view
+ class="org.chromium.chrome.browser.appmenu.AppMenu$MenuItemIcon"
+ android:id="@+id/menu_item_icon"
+ android:layout_weight="0"
+ android:layout_width="wrap_content"
+ android:layout_height="?android:attr/listPreferredItemHeightSmall"
+ android:layout_gravity="end"
+ android:gravity="center_vertical"
+ android:paddingEnd="8dp" />
+</LinearLayout>
« no previous file with comments | « chrome/android/java/res/layout/menu_icon_row.xml ('k') | chrome/android/java/res/values-hdpi/dimens.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698