blob: a8dcdba758c54f23627c4b3bb93e1b3b5cdf8829 [file] [log] [blame]
Amith Yamasani43c69782010-12-01 09:04:36 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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
Fabrice Di Meglio1bc99652014-10-16 17:16:26 -070017<!-- Layout used by SyncStateSwitchPreference. This is inflated
Amith Yamasani43c69782010-12-01 09:04:36 -080018 inside android.R.layout.preference. -->
19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="wrap_content"
21 android:layout_height="wrap_content"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070022 android:layout_gravity="center_vertical|end"
23 android:gravity="center_vertical|end">
Amith Yamasani43c69782010-12-01 09:04:36 -080024
25 <ImageView
Jeff Sharkey7a7ea2b2011-08-30 19:59:36 -070026 android:id="@+id/sync_failed"
Fan Zhang11e8d2f2018-04-05 17:47:40 -070027 android:src="@drawable/ic_sync_problem_24dp"
Amith Yamasani43c69782010-12-01 09:04:36 -080028 android:layout_width="wrap_content"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070029 android:layout_marginEnd="8dip"
alanv0aa7c4f2012-05-21 17:55:19 -070030 android:layout_height="wrap_content"
31 android:contentDescription="@string/sync_failed" />
Amith Yamasani43c69782010-12-01 09:04:36 -080032
Tony Mantlerb280b0a2015-11-17 15:13:29 -080033 <com.android.settingslib.widget.AnimatedImageView
Jeff Sharkey7a7ea2b2011-08-30 19:59:36 -070034 android:id="@+id/sync_active"
Amith Yamasani43c69782010-12-01 09:04:36 -080035 android:src="@drawable/ic_list_sync_anim"
36 android:layout_width="wrap_content"
Jeff Sharkey7a7ea2b2011-08-30 19:59:36 -070037 android:layout_height="wrap_content"
Fabrice Di Meglio79d8e802012-07-19 19:25:50 -070038 android:layout_marginEnd="8dip"
alanv0aa7c4f2012-05-21 17:55:19 -070039 android:contentDescription="@string/sync_active" />
Amith Yamasani43c69782010-12-01 09:04:36 -080040
Fabrice Di Meglio1bc99652014-10-16 17:16:26 -070041 <Switch xmlns:android="http://schemas.android.com/apk/res/android"
Jason Monk52a302e2015-10-28 14:34:53 -040042 android:id="@android:id/switch_widget"
Amith Yamasani43c69782010-12-01 09:04:36 -080043 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
Amith Yamasani43c69782010-12-01 09:04:36 -080045 android:layout_gravity="center_vertical"
46 android:focusable="false"
47 android:clickable="false" />
48</LinearLayout>