diff options
Diffstat (limited to 'res/layout/preference_widget_sync_toggle.xml')
-rw-r--r-- | res/layout/preference_widget_sync_toggle.xml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/res/layout/preference_widget_sync_toggle.xml b/res/layout/preference_widget_sync_toggle.xml new file mode 100644 index 0000000..94f4065 --- /dev/null +++ b/res/layout/preference_widget_sync_toggle.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- Layout used by SyncStateCheckBoxPreference. This is inflated + inside android.R.layout.preference. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical"> + + <ImageView + android:id="@+android:id/sync_failed" + android:src="@drawable/ic_list_syncerror" + android:layout_width="wrap_content" + android:layout_marginLeft="6sp" + android:layout_marginBottom="2sp" + android:layout_height="wrap_content" /> + + <ImageView + android:id="@+android:id/sync_active" + android:src="@drawable/ic_list_sync_anim" + android:layout_width="wrap_content" + android:layout_marginLeft="6sp" + android:layout_marginBottom="2sp" + android:layout_height="wrap_content" /> + + <ImageView + android:id="@+android:id/sync_pending" + android:src="@drawable/ic_list_sync_anim0" + android:layout_width="wrap_content" + android:layout_marginLeft="6sp" + android:layout_marginBottom="2sp" + android:layout_height="wrap_content" /> + + <CheckBox xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+android:id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="4sp" + android:layout_gravity="center_vertical" + android:focusable="false" + android:clickable="false" /> +</LinearLayout> |