1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:gravity="center_vertical"
22    android:background="?attr/selectableItemBackground"
23    android:minHeight="@dimen/cities_list_item_height"
24    android:orientation="horizontal">
25    <TextView
26        android:id="@+id/index"
27        android:layout_width="74dip"
28        android:layout_height="match_parent"
29        android:gravity="center"
30        android:textStyle="bold"
31        android:textSize="@dimen/label_text_size"
32        android:textColor="@color/white" />
33    <CheckBox
34        android:id="@+id/city_onoff"
35        android:layout_height="wrap_content"
36        android:layout_width="wrap_content"
37        android:clickable="false" />
38    <TextView
39        android:id="@+id/city_name"
40        android:layout_width="0dip"
41        android:layout_height="wrap_content"
42        android:layout_weight="1"
43        android:paddingStart="16dip"
44        android:paddingEnd="10dip"
45        android:ellipsize="end"
46        android:singleLine="true"
47        android:textAppearance="@style/PrimaryLabelTextAppearance" />
48    <TextView
49        android:id="@+id/city_time"
50        android:layout_width="wrap_content"
51        android:layout_height="wrap_content"
52        android:layout_marginEnd="8dip"
53        android:textAppearance="@style/SecondaryLabelTextAppearance" />
54</LinearLayout>
55