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

Side by Side Diff: chrome/android/java/res/layout/data_reduction_main_menu_footer.xml

Issue 2795653006: Add icon to the Data Saver main menu footer and update to spec (Closed)
Patch Set: 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 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. Use of this sourc e
3 Use of this source code is governed by a BSD-style license that can be 3 code is governed by a BSD-style license that can be found in the LICENSE fil e. -->
4 found in the LICENSE file. -->
5 4
6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoot er 5 <org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoot er
7 xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 7 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:id="@+id/data_reduction_footer" 8 android:id="@+id/data_reduction_footer"
10 android:layout_width="match_parent" 9 android:layout_width="match_parent"
11 android:layout_height="wrap_content" 10 android:layout_height="wrap_content"
12 android:layout_gravity="start" 11 android:orientation="vertical">
13 android:paddingTop="12dp"
14 android:paddingBottom="12dp"
15 android:orientation="vertical"
16 style="@style/AppMenuItem" >
17 12
18 <TextView 13 <View style="@style/Divider"/>
Ted C 2017/04/05 17:32:13 Instead of the outer view being a linearlayout, ca
megjablon 2017/04/06 22:01:34 I played around with this a little, but I'd like t
19 android:id="@+id/menu_item_text" 14
20 android:layout_width="wrap_content" 15 <LinearLayout
16 android:layout_width="match_parent"
21 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
22 android:text="@string/data_reduction_title" 18 android:layout_gravity="start"
23 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" /> 19 android:paddingTop="12dp"
20 android:paddingBottom="12dp"
21 android:orientation="horizontal"
22 style="@style/AppMenuItem">
24 23
25 <TextView 24 <ImageView
26 android:id="@+id/menu_item_summary" 25 android:id="@+id/menu_item_icon"
27 android:layout_width="wrap_content" 26 android:layout_width="wrap_content"
28 android:layout_height="wrap_content" 27 android:layout_height="match_parent"
29 android:textSize="14sp" 28 android:contentDescription="@null" />
30 android:textColor="@color/descriptive_text_color" /> 29
30 <LinearLayout
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:orientation="vertical"
34 android:paddingStart="16dp">
35
36 <TextView
37 android:id="@+id/menu_item_text"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:textSize="14sp"
41 android:textAppearance="@style/RobotoMediumStyle" />
42
43 <TextView
44 android:id="@+id/menu_item_summary"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:textSize="14sp"
48 android:textColor="@color/descriptive_text_color" />
49 </LinearLayout>
50
51 </LinearLayout>
31 52
32 </org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoo ter> 53 </org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoo ter>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698