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

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: move graph into bitmap 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.
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 5
6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoot er 6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoot er
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:id="@+id/data_reduction_footer" 9 android:id="@+id/data_reduction_footer"
10 android:layout_width="match_parent" 10 android:layout_width="match_parent"
11 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
12 android:layout_gravity="start"
13 android:paddingTop="12dp"
14 android:paddingBottom="12dp"
15 android:orientation="vertical" 12 android:orientation="vertical"
16 style="@style/AppMenuItem" > 13 android:background="#EDFAFAFA" >
17 14
18 <TextView 15 <View style="@style/Divider" />
19 android:id="@+id/menu_item_text" 16
20 android:layout_width="wrap_content" 17 <FrameLayout
18 android:layout_width="match_parent"
21 android:layout_height="wrap_content" 19 android:layout_height="wrap_content"
22 android:text="@string/data_reduction_title" 20 android:layout_gravity="start"
23 android:textAppearance="?android:attr/textAppearanceLargePopupMenu" /> 21 android:layout_marginTop="@dimen/divider_height"
22 android:paddingTop="12dp"
23 android:paddingBottom="12dp"
24 android:orientation="horizontal"
25 style="@style/AppMenuItem" >
24 26
25 <TextView 27 <ImageView
26 android:id="@+id/menu_item_summary" 28 android:id="@+id/chart_icon"
27 android:layout_width="wrap_content" 29 android:src="@+drawable/data_reduction_main_menu_icon"
28 android:layout_height="wrap_content" 30 android:layout_width="@dimen/data_reduction_main_menu_icon_width"
29 android:textSize="14sp" 31 android:layout_height="match_parent"
30 android:textColor="@color/descriptive_text_color" /> 32 android:layout_gravity="center_vertical"
33 android:contentDescription="@null" />
34
35 <LinearLayout
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_marginStart="@dimen/data_reduction_main_menu_icon_wid th"
39 android:orientation="vertical"
40 android:paddingStart="16dp" >
41
42 <TextView
43 android:id="@+id/menu_item_text"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:textSize="14sp"
47 android:textAppearance="@style/RobotoMediumStyle" />
48
49 <TextView
50 android:id="@+id/menu_item_summary"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:textSize="14sp"
54 android:textColor="@color/descriptive_text_color" />
55 </LinearLayout>
56
57 </FrameLayout>
31 58
32 </org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoo ter> 59 </org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFoo ter>
OLDNEW
« no previous file with comments | « chrome/android/java/res/drawable/data_reduction_main_menu_icon.xml ('k') | chrome/android/java/res/values-v17/styles.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698