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

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

Issue 2858433002: [Android] Increase the clickable area of direct share icon (Closed)
Patch Set: Update based on Ted's new comments. Created 3 years, 8 months 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuListAdapter.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/tabular_context_menu_row.xml
diff --git a/chrome/android/java/res/layout/tabular_context_menu_row.xml b/chrome/android/java/res/layout/tabular_context_menu_row.xml
index 5e4d200f2fdc6f3857bf2a00043407c70c884dd9..b638933dcff532653d2dc269414766767aed3f82 100644
--- a/chrome/android/java/res/layout/tabular_context_menu_row.xml
+++ b/chrome/android/java/res/layout/tabular_context_menu_row.xml
@@ -8,14 +8,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
- android:paddingEnd="15dp"
android:minHeight="40dp"
tools:ignore="UseCompoundDrawables">
<ImageView
android:id="@+id/context_menu_icon"
android:layout_width="20dp"
- android:layout_height="20dp"
- android:layout_gravity="center_vertical"
+ android:layout_height="match_parent"
+ android:paddingTop="10dp"
Ted C 2017/05/03 22:52:19 here since this isn't clickable, I think you don't
ltian 2017/05/04 00:02:40 I am curious if the height size is larger than 40d
Ted C 2017/05/04 00:55:40 I don't think the icon sizes would be any more dif
+ android:paddingBottom="10dp"
+ android:scaleType="centerInside"
android:contentDescription="@null" />
<TextView
android:id="@+id/context_text"
@@ -28,9 +29,17 @@
android:textColor="#dd000000" />
<ImageView
android:id="@+id/context_menu_share_icon"
- android:layout_width="20dp"
- android:layout_height="20dp"
- android:layout_gravity="center_vertical"
+ android:layout_width="51dp"
+ android:layout_height="match_parent"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
Ted C 2017/05/04 00:55:40 actually, you shouldn't need paddingTop or padding
ltian 2017/05/04 01:43:41 Setting the height of ImageView to wrap_content ma
Ted C 2017/05/04 14:37:56 Indeed. The current implementation will handle ex
ltian 2017/05/04 18:27:23 Looks like the two implementations all have their
+ android:paddingStart="12dp"
+ android:paddingEnd="15dp"
+ android:scaleType="centerInside"
android:contentDescription="@null"
android:visibility="gone"/>
+ <Space
+ android:id="@+id/context_menu_right_padding"
+ android:layout_width="15dp"
+ android:layout_height="wrap_content"/>
</LinearLayout>
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuListAdapter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698