calendar_sync_item.xml revision 7fd6bc8258be443b829ac2ae0dcdebea2f5aad4a
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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="?android:attr/listPreferredItemHeight"
21    android:orientation="horizontal"
22    android:layout_marginRight="6dip"
23    android:layout_marginTop="6dip"
24    android:layout_marginBottom="6dip">
25
26    <com.android.calendar.selectcalendars.CalendarColorSquare
27        android:id="@+id/color"
28        android:layout_height="32dip"
29        android:layout_width="32dip"
30        android:layout_marginLeft="13dip"
31        android:layout_gravity="center_vertical"
32        android:contentDescription="@string/calendar_square_color_picker_description"
33        style="?android:attr/quickContactBadgeStyleWindowMedium" />
34
35    <LinearLayout
36        android:layout_width="0dip"
37        android:layout_height="wrap_content"
38        android:layout_weight="1"
39        android:layout_marginLeft="8dip"
40        android:orientation="vertical"
41        android:layout_gravity="center_vertical">
42
43        <TextView
44            android:id="@+id/calendar"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:singleLine="true"
48            android:ellipsize="marquee"
49            style="?android:attr/textAppearanceMedium"
50            android:duplicateParentState="true" />
51
52        <TextView
53            android:id="@+id/status"
54            android:layout_width="wrap_content"
55            android:layout_height="wrap_content"
56            android:singleLine="true"
57            android:ellipsize="marquee"
58            android:textAppearance="?android:attr/textAppearanceSmall"
59            android:duplicateParentState="true" />
60    </LinearLayout>
61
62    <CheckBox
63        android:id="@+id/sync"
64        android:layout_width="wrap_content"
65        android:layout_height="wrap_content"
66        android:layout_gravity="center_vertical"
67        android:layout_marginLeft="4dip"
68        android:layout_marginRight="14dip"
69        android:contentDescription="@string/accessibility_sync_cal"
70        android:clickable="false"
71        android:longClickable="false"
72        android:focusable="false" />
73</LinearLayout>