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

Unified 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: new assets 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/data_reduction_main_menu_footer.xml
diff --git a/chrome/android/java/res/layout/data_reduction_main_menu_footer.xml b/chrome/android/java/res/layout/data_reduction_main_menu_footer.xml
index 15cc470b4b5ee3bee2044db603df5a40687abded..91a4449dc70e3a555ece67c956434906691a949e 100644
--- a/chrome/android/java/res/layout/data_reduction_main_menu_footer.xml
+++ b/chrome/android/java/res/layout/data_reduction_main_menu_footer.xml
@@ -9,24 +9,48 @@
android:id="@+id/data_reduction_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="start"
- android:paddingTop="12dp"
- android:paddingBottom="12dp"
android:orientation="vertical"
- style="@style/AppMenuItem" >
+ android:background="#EDFAFAFA" >
- <TextView
- android:id="@+id/menu_item_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/data_reduction_title"
- android:textAppearance="?android:attr/textAppearanceLargePopupMenu" />
+ <View style="@style/Divider" />
- <TextView
- android:id="@+id/menu_item_summary"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textSize="14sp"
- android:textColor="@color/descriptive_text_color" />
+ android:layout_gravity="start"
+ android:paddingTop="12dp"
+ android:paddingBottom="12dp"
+ android:orientation="horizontal"
+ style="@style/AppMenuItem" >
Ted C 2017/04/07 18:19:10 I think even if we want to keep AppMenuItem, we sh
megjablon 2017/04/07 20:03:26 Done. PTAL to make sure I understood correctly.
+
+ <ImageView
+ android:id="@+id/chart_icon"
+ android:src="@+drawable/data_reduction_main_menu_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:contentDescription="@null" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:paddingStart="16dp" >
+
+ <TextView
+ android:id="@+id/menu_item_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:textAppearance="@style/RobotoMediumStyle" />
+
+ <TextView
+ android:id="@+id/menu_item_summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:textColor="@color/descriptive_text_color" />
+ </LinearLayout>
+
+ </LinearLayout>
</org.chromium.chrome.browser.preferences.datareduction.DataReductionMainMenuFooter>

Powered by Google App Engine
This is Rietveld 408576698