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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..af49fe410dc20280204962a823da03d4807340f0 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/download_manager_ui_space_widget.xml |
@@ -0,0 +1,41 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright 2016 The Chromium Authors. All rights reserved. |
+ Use of this source code is governed by a BSD-style license that can be |
+ found in the LICENSE file. --> |
+ |
+<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="32sp" /> |
+ |
+ <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" /> |
+ |
+ <!-- TODO(dfalcantara): Style this toolbar as Material on JB & KK. |
+ These are currently broken in the support library and look Holo. |
+ --> |
+ <ProgressBar |
+ android:id="@+id/space_bar" |
+ style="@style/Widget.AppCompat.ProgressBar.Horizontal" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:paddingTop="@dimen/drawer_margin_large" |
+ android:paddingBottom="@dimen/drawer_margin_large" |
+ android:paddingStart="@dimen/drawer_margin_large" |
+ android:paddingEnd="@dimen/drawer_margin_large" /> |
+ |
+</merge> |