calendar_sync_item.xml revision 2aeb8d988aa4b65d3402374832613ab977e009dc
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<RelativeLayout
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:layout_marginRight="6dip"
22    android:layout_marginTop="6dip"
23    android:layout_marginBottom="6dip"
24    android:clickable="false"
25    android:longClickable="false"
26    android:focusable="false">
27    <CheckBox
28        android:id="@+id/sync"
29        android:layout_width="wrap_content"
30        android:layout_height="match_parent"
31        android:layout_marginLeft="4dip"
32        android:layout_marginRight="14dip"
33        android:layout_alignParentRight="true"
34        android:contentDescription="@string/accessibility_sync_cal" />
35    <View
36        android:id="@+id/color"
37        android:layout_width="16dip"
38        android:layout_height="16dip"
39        android:layout_alignParentLeft="true"
40        android:layout_marginLeft="16dip"
41        android:layout_marginRight="16dip"
42        android:layout_marginTop="8dip"
43        android:layout_gravity="center_vertical" />
44    <TextView
45        android:id="@+id/calendar"
46        android:layout_width="wrap_content"
47        android:layout_height="wrap_content"
48        android:layout_toRightOf="@id/color"
49        android:layout_toLeftOf="@id/sync"
50        android:gravity="center_vertical"
51        android:singleLine="true"
52        android:ellipsize="marquee"
53        style="?android:attr/textAppearanceMedium"
54        android:duplicateParentState="true" />
55    <TextView
56        android:id="@+id/status"
57        android:layout_width="wrap_content"
58        android:layout_height="wrap_content"
59        android:layout_below="@id/calendar"
60        android:layout_alignLeft="@id/calendar"
61        android:layout_toLeftOf="@id/sync"
62        android:ellipsize="marquee"
63        android:singleLine="true"
64        android:textAppearance="?android:attr/textAppearanceSmall"
65        android:duplicateParentState="true" />
66</RelativeLayout>