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

Unified Diff: chrome/android/java/res/layout/download_manager_ui_space_widget.xml

Issue 2464473002: [Download Home] Make the space display usable (Closed)
Patch Set: Added javadoc Created 4 years, 1 month 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/download_manager_ui_space_widget.xml
diff --git a/chrome/android/java/res/layout/download_manager_ui_space_widget.xml b/chrome/android/java/res/layout/download_manager_ui_space_widget.xml
index ded16cfa3b93ef498e763c1d300c310de5ef29d4..2840692b5094ee4e7b2261221028897fe5e677b1 100644
--- a/chrome/android/java/res/layout/download_manager_ui_space_widget.xml
+++ b/chrome/android/java/res/layout/download_manager_ui_space_widget.xml
@@ -5,36 +5,47 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- TODO(dfalcantara): Figure out how to split off the units from the value and
- then make that part of the string smaller with a Spannable.
- -->
- <TextView
- android:id="@+id/space_used_display"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingStart="@dimen/drawer_margin_large"
- android:paddingEnd="@dimen/drawer_margin_large"
- android:textColor="@color/light_active_color"
- android:textSize="28sp" />
-
- <TextView
- android:id="@+id/space_total_display"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingStart="@dimen/drawer_margin_large"
- android:paddingEnd="@dimen/drawer_margin_large"
- android:textColor="@color/descriptive_text_color"
- android:textSize="14sp" />
-
- <!-- The widget ends up claiming 48dp of space, vertically. -->
- <ProgressBar
- android:id="@+id/space_bar"
- style="@style/MaterialProgressBar"
- android:layout_width="match_parent"
- android:layout_height="4dp"
- android:layout_marginTop="22dp"
- android:layout_marginBottom="22dp"
- android:layout_marginStart="@dimen/drawer_margin_large"
- android:layout_marginEnd="@dimen/drawer_margin_large" />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/drawer_margin_large"
+ android:layout_marginEnd="@dimen/drawer_margin_large"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/size_downloaded"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textColor="@color/light_active_color"
+ android:textSize="20sp" />
+
+ <!-- The widget ends up claiming 32dp of space, vertically. -->
+ <ProgressBar
+ android:id="@+id/space_bar"
+ style="@style/MaterialProgressBar"
+ android:layout_width="match_parent"
+ android:layout_height="4dp"
+ android:layout_marginTop="14dp"
+ android:layout_marginBottom="14dp" />
+
+ <TextView
+ android:id="@+id/size_other_apps"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textColor="@color/google_grey_600"
+ android:textSize="14sp" />
+
+ <TextView
+ android:id="@+id/size_free"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="22dp"
+ android:singleLine="true"
+ android:textColor="@color/material_progressbar_bg"
+ android:textSize="14sp" />
+
+ </LinearLayout>
</merge>
« no previous file with comments | « chrome/android/java/res/drawable/material_progressbar.xml ('k') | chrome/android/java/res/values/colors.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698