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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2017 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 5 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
6 xmlns:tools="http://schemas.android.com/tools" 6 xmlns:tools="http://schemas.android.com/tools"
7 android:orientation="horizontal" 7 android:orientation="horizontal"
8 android:layout_width="match_parent" 8 android:layout_width="match_parent"
9 android:layout_height="wrap_content" 9 android:layout_height="wrap_content"
10 android:paddingStart="15dp" 10 android:paddingStart="15dp"
11 android:paddingEnd="15dp"
12 android:minHeight="40dp" 11 android:minHeight="40dp"
13 tools:ignore="UseCompoundDrawables"> 12 tools:ignore="UseCompoundDrawables">
14 <ImageView 13 <ImageView
15 android:id="@+id/context_menu_icon" 14 android:id="@+id/context_menu_icon"
16 android:layout_width="20dp" 15 android:layout_width="20dp"
17 android:layout_height="20dp" 16 android:layout_height="20dp"
17 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
18 android:layout_marginBottom="10dp"
18 android:layout_gravity="center_vertical" 19 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.
19 android:contentDescription="@null" /> 20 android:contentDescription="@null" />
20 <TextView 21 <TextView
21 android:id="@+id/context_text" 22 android:id="@+id/context_text"
22 android:layout_width="0dp" 23 android:layout_width="0dp"
23 android:layout_height="wrap_content" 24 android:layout_height="wrap_content"
24 android:layout_gravity="center_vertical" 25 android:layout_gravity="center_vertical"
25 android:layout_marginStart="10dp" 26 android:layout_marginStart="10dp"
26 android:layout_weight="1" 27 android:layout_weight="1"
27 android:textSize="15sp" 28 android:textSize="15sp"
28 android:textColor="#dd000000" /> 29 android:textColor="#dd000000" />
29 <ImageView 30 <ImageView
30 android:id="@+id/context_menu_share_icon" 31 android:id="@+id/context_menu_share_icon"
31 android:layout_width="20dp" 32 android:layout_width="51dp"
32 android:layout_height="20dp" 33 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.
34 android:paddingTop="8dp"
35 android:paddingBottom="8dp"
36 android:paddingStart="12dp"
37 android:paddingEnd="15dp"
33 android:layout_gravity="center_vertical" 38 android:layout_gravity="center_vertical"
34 android:contentDescription="@null" 39 android:contentDescription="@null"
35 android:visibility="gone"/> 40 android:visibility="gone"/>
41 <Space
42 android:id="@+id/context_menu_right_padding"
43 android:layout_width="15dp"
44 android:layout_height="wrap_content"/>
36 </LinearLayout> 45 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698