4th hour of searching and No results all the same. A fact that we should not. Tell me how to implement the following:
- There AsyncTask that performs certain actions
- There are 25 pictures of the following form: Image
There Sheet Animation xml:
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true" android:layout_width="wrap_content" android:layout_height="wrap_content"> <item android:drawable="@drawable/a1" android:duration="250"/> <item android:drawable="@drawable/a2" android:duration="250"/> <item android:drawable="@drawable/a3" android:duration="250"/> <item android:drawable="@drawable/a4" android:duration="250"/> <item android:drawable="@drawable/a5" android:duration="250"/> <item android:drawable="@drawable/a6" android:duration="250"/> <item android:drawable="@drawable/a7" android:duration="250"/> <item android:drawable="@drawable/a8" android:duration="250"/> <item android:drawable="@drawable/a9" android:duration="250"/> <item android:drawable="@drawable/a10" android:duration="250"/> <item android:drawable="@drawable/a11" android:duration="250"/> <item android:drawable="@drawable/a12" android:duration="250"/> <item android:drawable="@drawable/a13" android:duration="250"/> <item android:drawable="@drawable/a14" android:duration="250"/> <item android:drawable="@drawable/a15" android:duration="250"/> <item android:drawable="@drawable/a16" android:duration="250"/> <item android:drawable="@drawable/a17" android:duration="250"/> <item android:drawable="@drawable/a18" android:duration="250"/> <item android:drawable="@drawable/a19" android:duration="250"/> <item android:drawable="@drawable/a20" android:duration="250"/> <item android:drawable="@drawable/a21" android:duration="250"/> <item android:drawable="@drawable/a22" android:duration="250"/> <item android:drawable="@drawable/a23" android:duration="250"/> <item android:drawable="@drawable/a24" android:duration="250"/> <item android:drawable="@drawable/a25" android:duration="250"/> </animation-list>
- There xml markup:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|left|right|top" android:layout_margin="50dp" /> </RelativeLayout>
how to get in AsyncTask in a method:
protected void onProgressUpdate(Integer... progress) { }
Work progress bar is not infinite but only when loading data into AsynkTask.
Sometimes it happens that the data have already boot animation and is still going on or no turnover data and the animation is over.
Please tell me how to solve this problem. For earlier thanks to all who respond!
Something like this, but this code displays me why that normal progressbar dialog/
Where is the mistake?