Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 1 | <?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 Meglio | 1bc9965 | 2014-10-16 17:16:26 -0700 | [diff] [blame] | 17 | <!-- Layout used by SyncStateSwitchPreference. This is inflated |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 18 | 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 Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 22 | android:layout_gravity="center_vertical|end" |
| 23 | android:gravity="center_vertical|end"> |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 24 | |
| 25 | <ImageView |
Jeff Sharkey | 7a7ea2b | 2011-08-30 19:59:36 -0700 | [diff] [blame] | 26 | android:id="@+id/sync_failed" |
| 27 | android:src="@drawable/ic_sync_error_holo" |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 28 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 29 | android:layout_marginEnd="8dip" |
alanv | 0aa7c4f | 2012-05-21 17:55:19 -0700 | [diff] [blame] | 30 | android:layout_height="wrap_content" |
| 31 | android:contentDescription="@string/sync_failed" /> |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 32 | |
Tony Mantler | b280b0a | 2015-11-17 15:13:29 -0800 | [diff] [blame] | 33 | <com.android.settingslib.widget.AnimatedImageView |
Jeff Sharkey | 7a7ea2b | 2011-08-30 19:59:36 -0700 | [diff] [blame] | 34 | android:id="@+id/sync_active" |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 35 | android:src="@drawable/ic_list_sync_anim" |
| 36 | android:layout_width="wrap_content" |
Jeff Sharkey | 7a7ea2b | 2011-08-30 19:59:36 -0700 | [diff] [blame] | 37 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 79d8e80 | 2012-07-19 19:25:50 -0700 | [diff] [blame] | 38 | android:layout_marginEnd="8dip" |
alanv | 0aa7c4f | 2012-05-21 17:55:19 -0700 | [diff] [blame] | 39 | android:contentDescription="@string/sync_active" /> |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 40 | |
Fabrice Di Meglio | 1bc9965 | 2014-10-16 17:16:26 -0700 | [diff] [blame] | 41 | <Switch xmlns:android="http://schemas.android.com/apk/res/android" |
Jason Monk | 52a302e | 2015-10-28 14:34:53 -0400 | [diff] [blame] | 42 | android:id="@android:id/switch_widget" |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
Amith Yamasani | 43c6978 | 2010-12-01 09:04:36 -0800 | [diff] [blame] | 45 | android:layout_gravity="center_vertical" |
| 46 | android:focusable="false" |
| 47 | android:clickable="false" /> |
| 48 | </LinearLayout> |