Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- Layout used for list section separators. --> |
Nancy Chen | b2580c5 | 2014-08-05 14:39:02 -0700 | [diff] [blame] | 18 | <LinearLayout |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 20 | android:id="@+id/directory_header" |
John Shao | 1e24ae8 | 2016-12-06 18:55:24 -0800 | [diff] [blame] | 21 | android:background="@android:color/transparent" |
Wenyi Wang | 4f35817 | 2016-07-25 18:02:50 -0700 | [diff] [blame] | 22 | android:paddingLeft="@dimen/directory_header_left_padding" |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 23 | android:paddingRight="?attr/list_item_padding_right" |
Wenyi Wang | 4f35817 | 2016-07-25 18:02:50 -0700 | [diff] [blame] | 24 | android:paddingStart="@dimen/directory_header_left_padding" |
Fabrice Di Meglio | 7eab4d4 | 2013-04-03 20:59:09 -0700 | [diff] [blame] | 25 | android:paddingEnd="?attr/list_item_padding_right" |
Nancy Chen | b2580c5 | 2014-08-05 14:39:02 -0700 | [diff] [blame] | 26 | android:paddingTop="@dimen/directory_header_extra_top_padding" |
Nancy Chen | c170699 | 2014-08-15 12:19:29 -0700 | [diff] [blame] | 27 | android:paddingBottom="@dimen/directory_header_extra_bottom_padding" |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 28 | android:minHeight="@dimen/list_section_divider_min_height" |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Andrew Lee | 73a1ae2 | 2014-05-01 17:53:10 -0700 | [diff] [blame] | 30 | android:layout_height="wrap_content" > |
Nancy Chen | b2580c5 | 2014-08-05 14:39:02 -0700 | [diff] [blame] | 31 | <TextView |
| 32 | android:id="@+id/label" |
| 33 | android:layout_width="wrap_content" |
Chiao Cheng | cd25f38 | 2012-11-01 13:41:51 -0700 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
Nancy Chen | b2580c5 | 2014-08-05 14:39:02 -0700 | [diff] [blame] | 35 | android:textAppearance="@style/DirectoryHeaderStyle" |
| 36 | android:singleLine="true" |
| 37 | android:textAlignment="viewStart" /> |
| 38 | <TextView |
| 39 | android:id="@+id/display_name" |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" |
| 42 | android:layout_marginStart="8dp" |
| 43 | android:textAppearance="@style/DirectoryHeaderStyle" |
| 44 | android:singleLine="true" |
| 45 | android:textAlignment="viewStart" /> |
| 46 | <TextView |
| 47 | android:id="@+id/count" |
| 48 | android:paddingTop="1dip" |
| 49 | android:layout_width="0dip" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:gravity="end" |
| 52 | android:singleLine="true" |
| 53 | android:textAppearance="@style/DirectoryHeaderStyle" /> |
| 54 | </LinearLayout> |