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

Side by Side Diff: chrome/android/java/res/layout/storage_preference_fragment.xml

Issue 1465363002: [Storage] Android - ManageSpace UI, Important Origins, and CBD Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
Finnur 2015/11/24 16:39:53 Would be good to get a screenshot of this UI.
dmurph 2015/11/25 23:47:45 Put screenshot in bug.
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
5
6 <!-- Based on Android framework file, with customization to keep button bar
7 visible:
8 platform_frameworks_base/core/res/res/layout/preference_list_fragment.xml
9 -->
10 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
newt (away) 2015/11/25 15:56:25 standard indentation for Android xml files looks l
dmurph 2015/11/25 23:47:46 So this means I'm adding a couple of newlines, rig
11 android:orientation="vertical"
12 android:layout_height="match_parent"
13 android:layout_width="match_parent"
14 android:background="@android:color/transparent">
15
16 <FrameLayout
17 android:layout_width="match_parent"
18 android:layout_height="0dp"
Finnur 2015/11/25 11:30:22 Unites are irrelevant with 0, just use "0", same w
newt (away) 2015/11/25 15:56:25 Actually, you need units even when the value is 0
Finnur 2015/11/26 15:54:41 I've been working too much in Polymer lately. :)
19 android:layout_weight="1"
Finnur 2015/11/25 11:30:22 But don't you want the unit here?
newt (away) 2015/11/25 15:56:25 layout_weight doesn't actually have units
Finnur 2015/11/26 15:54:41 Oh. I mistook weight for width. Sorry. :)
20 android:background="@android:color/transparent">
21
22 <ListView android:id="@android:id/list"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:paddingTop="0dip"
26 android:paddingBottom="0dp"
27 android:clipToPadding="false"
28 android:drawSelectorOnTop="false"
29 android:cacheColorHint="@android:color/transparent"
30 android:scrollbarAlwaysDrawVerticalTrack="true" />
31
32 <TextView android:id="@android:id/empty"
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:padding="8dip"
36 android:textAppearance="?android:attr/textAppearanceMedium"
37 android:gravity="center"
38 android:visibility="gone" />
39 </FrameLayout>
40
41 <RelativeLayout android:id="@+id/button_bar"
42 android:layout_height="wrap_content"
43 android:layout_width="match_parent"
44 android:layout_weight="0">
45
46 <Button android:id="@+id/clear_button"
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
49 android:layout_margin="5dip"
50 android:layout_weight="1"
51 android:text="@string/storage_clear_button_title"
52 />
53 </RelativeLayout>
54 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698