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

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: Udpate based on Ted's 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
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..1feec1a974f4515389c54360a58abe0166bddcf9 100644
--- a/chrome/android/java/res/layout/tabular_context_menu_row.xml
+++ b/chrome/android/java/res/layout/tabular_context_menu_row.xml
@@ -8,13 +8,14 @@
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_marginTop="10dp"
Ted C 2017/05/02 21:06:47 are these strictly necessary? And by setting top
ltian 2017/05/03 19:05:05 There are the settings in spec. The margin is plac
+ android:layout_marginBottom="10dp"
android:layout_gravity="center_vertical"
Ted C 2017/05/02 21:06:47 if we need margins, is this needed anymore?
ltian 2017/05/03 19:05:05 Oh, then both two ImageViews should not need this.
android:contentDescription="@null" />
<TextView
@@ -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_width="51dp"
+ android:layout_height="40dp"
Ted C 2017/05/02 21:06:47 We should probably sync with UX, but what happens
ltian 2017/05/03 19:05:05 Done.
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="12dp"
+ android:paddingEnd="15dp"
android:layout_gravity="center_vertical"
android:contentDescription="@null"
android:visibility="gone"/>
+ <Space
+ android:id="@+id/context_menu_right_padding"
+ android:layout_width="15dp"
+ android:layout_height="wrap_content"/>
</LinearLayout>

Powered by Google App Engine
This is Rietveld 408576698