Bug 1366672 - part5: CustomTabs use AnimatedProgressBar draft
authorJulian_Chu <walkingice0204@gmail.com>
Sat, 12 Aug 2017 23:15:08 +0800
changeset 648109 b43e1568c74ac7b3b033b82dea5518cfeaed35bb
parent 648108 b3ea272808bfdeec115d8298cabc055720c70d6f
child 648110 77bc15ab102ea77608190b149a98e6337e42f4d9
push id74628
push userbmo:topwu.tw@gmail.com
push dateThu, 17 Aug 2017 08:32:13 +0000
bugs1366672
milestone57.0a1
Bug 1366672 - part5: CustomTabs use AnimatedProgressBar MozReview-Commit-ID: JxF9vlLPgb4
mobile/android/app/src/main/res/layout/customtabs_activity.xml
--- a/mobile/android/app/src/main/res/layout/customtabs_activity.xml
+++ b/mobile/android/app/src/main/res/layout/customtabs_activity.xml
@@ -22,25 +22,27 @@
 
     <org.mozilla.gecko.GeckoView
         android:id="@+id/gecko_view"
         android:layout_width="fill_parent"
         android:layout_below="@id/actionbar"
         android:layout_height="match_parent"
         android:scrollbars="none"/>
 
-    <ProgressBar
+    <org.mozilla.gecko.widget.AnimatedProgressBar
         android:id="@id/page_progress"
         style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
         android:layout_width="match_parent"
         android:layout_height="4dp"
         android:layout_alignTop="@id/gecko_view"
         android:background="@drawable/url_bar_bg"
         android:progressDrawable="@drawable/progressbar"
-        tools:progress="70"/>
+        app:shiftDuration="@integer/shift_duration_suggestion"
+        app:wrapShiftDrawable="true"
+        tools:progress="70" />
 
     <View android:id="@+id/custom_tabs_doorhanger_overlay"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:background="@color/dark_transparent_overlay"
         android:alpha="0"
         android:layerType="hardware"/>