Index: chrome/android/java/res/layout/manage_space_activity.xml |
diff --git a/chrome/android/java/res/layout/manage_space_activity.xml b/chrome/android/java/res/layout/manage_space_activity.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..68c3800952b0468e3ba465772c65fd3ddc225808 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/manage_space_activity.xml |
@@ -0,0 +1,167 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright 2015 The Chromium Authors. All rights reserved. |
Finnur
2016/03/03 14:15:42
nit: 2016
dmurph
2016/04/26 21:43:12
Done.
|
+ Use of this source code is governed by a BSD-style license that can be |
+ found in the LICENSE file. --> |
+ |
+<!-- Based on Play Services' manage_space_activity.xml layout file. --> |
+<ScrollView |
+ xmlns:android="http://schemas.android.com/apk/res/android" |
+ android:id="@+id/main_scroll_view" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" > |
+ |
+ <LinearLayout |
+ android:id="@+id/main_view" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" |
+ android:layout_marginStart="16dip" |
+ android:layout_marginEnd="16dip" |
+ android:orientation="vertical" |
+ android:paddingStart="6dip" |
+ android:paddingEnd="6dip" |
+ android:paddingTop="5dip" |
+ android:paddingBottom="5dip"> |
+ |
+ <!-- ======== Unimportant Storage Info ======== --> |
Finnur
2016/03/03 14:15:42
nit: Single quotes would probably help here:
'Unim
dmurph
2016/04/26 21:43:12
Done.
|
+ <TextView |
+ android:id="@+id/unimportant_site_data_description" |
+ android:text="@string/storage_management_unimportant_site_data_descriptive_text" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="match_parent" |
+ android:paddingTop="6dip" /> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:orientation="horizontal" |
+ android:baselineAligned="true" |
+ android:paddingTop="-1dip"> |
+ |
+ <TextView |
+ android:id="@+id/unimportant_site_data_size_prefix" |
+ android:text="@string/storage_management_unimportant_site_data_size_label" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="wrap_content" |
+ android:maxLines="1" |
+ android:paddingTop="6dip" /> |
+ |
+ <ImageView |
+ android:src="@drawable/dotted_line_480px" |
+ android:layout_width="0dip" |
+ android:layout_weight="1" |
+ android:layout_height="1px" |
+ android:layout_gravity="bottom" |
+ android:layout_marginStart="1dip" |
+ android:layout_marginEnd="1dip" |
+ android:layout_marginBottom="4dip" |
+ android:scaleType="center" /> |
+ |
+ <TextView |
+ android:id="@+id/unimportant_site_data_storage_size_text" |
+ android:paddingTop="6dip" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="wrap_content" |
+ android:maxLines="1" /> |
+ |
Finnur
2016/03/03 14:15:42
Nit: Delete extra line here and below.
dmurph
2016/04/26 21:43:12
Done.
|
+ </LinearLayout> |
+ |
+ <Button |
+ android:id="@+id/clear_unimportant_site_data_storage" |
+ android:text="@string/storage_management_clear_unimportant_site_data_button" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_gravity="end" |
+ android:layout_marginTop="8dp" |
+ android:paddingStart="32dp" |
+ android:paddingEnd="32dp" /> |
+ |
+ |
+ <!-- ======== Site Storage Info ======== --> |
+ <TextView |
+ android:id="@+id/site_data_description" |
+ android:text="@string/storage_management_site_data_descriptive_text" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="match_parent" |
+ android:paddingTop="6dip" /> |
+ |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:orientation="horizontal" |
+ android:baselineAligned="true" |
+ android:paddingTop="-1dip"> |
+ |
+ <TextView |
+ android:id="@+id/site_data_size_prefix" |
+ android:text="@string/storage_management_site_data_size_label" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="wrap_content" |
+ android:maxLines="1" |
+ android:paddingTop="6dip" /> |
+ |
+ <ImageView |
+ android:src="@drawable/dotted_line_480px" |
+ android:layout_width="0dip" |
+ android:layout_weight="1" |
+ android:layout_height="1px" |
+ android:layout_gravity="bottom" |
+ android:layout_marginStart="1dip" |
+ android:layout_marginEnd="1dip" |
+ android:layout_marginBottom="4dip" |
+ android:scaleType="center" /> |
+ |
+ <TextView |
+ android:id="@+id/site_data_storage_size_text" |
+ android:paddingTop="6dip" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="wrap_content" |
+ android:maxLines="1" /> |
+ |
+ </LinearLayout> |
+ |
+ <Button |
+ android:id="@+id/manage_site_data_storage" |
+ android:text="@string/storage_management_manage_site_data_button" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_gravity="end" |
+ android:layout_marginTop="8dp" |
+ android:paddingStart="32dp" |
+ android:paddingEnd="32dp" /> |
+ |
+ <!-- ======== Global storage info ======== --> |
+ <LinearLayout |
+ android:id="@+id/clear_all_data_section" |
+ android:orientation="vertical" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" > |
+ |
+ <TextView |
+ android:id="@+id/all_storage_description" |
+ android:text="@string/storage_management_all_storage_descriptive_text" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_height="wrap_content" |
+ android:layout_width="match_parent" |
+ android:paddingTop="18dip" /> |
+ |
+ <Button |
+ android:id="@+id/clear_all_data" |
+ android:text="@string/storage_management_clear_all_data_button" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_gravity="end" |
+ android:layout_marginTop="8dp" |
+ android:paddingStart="32dp" |
+ android:paddingEnd="32dp" /> |
+ |
+ </LinearLayout> |
+ |
+ </LinearLayout> |
+ |
+</ScrollView> |