OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
Ted C
2016/06/06 23:53:55
storage_preference_fragment doesn't seem to be con
dmurph
2016/06/07 17:57:01
Done.
| |
2 <!-- Copyright 2016 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
7 android:orientation="vertical" | |
8 android:layout_height="match_parent" | |
9 android:layout_width="match_parent" | |
10 android:background="@android:color/transparent"> | |
Ted C
2016/06/06 23:53:54
why do you need to specify a background? could yo
dmurph
2016/06/07 17:57:01
This is from the default layout xml. I can remove.
| |
11 | |
12 <ListView android:id="@android:id/list" | |
13 android:layout_width="match_parent" | |
14 android:layout_height="0dp" | |
15 android:layout_weight="1" | |
16 android:paddingTop="0dp" | |
Ted C
2016/06/06 23:53:54
shouldn't 0 be the default padding? why adding th
dmurph
2016/06/07 17:57:01
Copied this from the system layout file.
| |
17 android:paddingBottom="0dp"/> | |
18 | |
19 <TextView android:id="@android:id/empty" | |
Ted C
2016/06/06 23:53:54
do you actually need this? I don't see it set any
dmurph
2016/06/07 17:57:01
Yes, when the list is empty we display this text.
| |
20 android:layout_width="match_parent" | |
21 android:layout_height="match_parent" | |
22 android:padding="8dp" | |
23 android:textAppearance="?android:attr/textAppearanceMedium" | |
24 android:gravity="center" | |
25 android:visibility="gone"/> | |
26 | |
27 <Button android:id="@+id/clear_button" | |
28 android:layout_width="match_parent" | |
29 android:layout_height="wrap_content" | |
30 android:text="@string/storage_clear_button_title" | |
31 style="@style/FlushFooterButton"/> | |
32 </LinearLayout> | |
OLD | NEW |