Sync asset drop and smoother animation.

Bug: 5233703
Change-Id: I3fa52da71b78dcfa7842047b427c5121d3ac7e68
This commit is contained in:
Jeff Sharkey
2011-08-30 19:59:36 -07:00
parent 9ca0ef5732
commit 7a7ea2bf2f
39 changed files with 136 additions and 71 deletions

View File

@@ -37,7 +37,10 @@
<TextView android:id="@+id/sync_settings_error_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/sync_is_failing" />
android:layout_margin="8dip"
android:text="@string/sync_is_failing"
android:drawablePadding="8dip"
android:drawableLeft="@drawable/ic_sync_error_holo" />
<!--
<LinearLayout android:id="@+id/remove_account_area"

View File

@@ -34,6 +34,9 @@
<TextView android:id="@+id/sync_settings_error_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/sync_is_failing" />
android:layout_margin="8dip"
android:text="@string/sync_is_failing"
android:drawablePadding="8dip"
android:drawableLeft="@drawable/ic_sync_error_holo" />
</LinearLayout>

View File

@@ -23,34 +23,23 @@
android:gravity="center_vertical|right">
<ImageView
android:id="@+android:id/sync_failed"
android:src="@drawable/ic_list_syncerror"
android:id="@+id/sync_failed"
android:src="@drawable/ic_sync_error_holo"
android:layout_width="wrap_content"
android:layout_marginLeft="6sp"
android:layout_marginBottom="2sp"
android:layout_marginRight="8dip"
android:layout_height="wrap_content" />
<ImageView
android:id="@+android:id/sync_active"
<com.android.settings.widget.AnimatedImageView
android:id="@+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" />
android:layout_height="wrap_content"
android:layout_marginRight="8dip" />
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+android:id/checkbox"
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" />