Reputation: 638
I am new to the Android animation, and I would like to implement a ProgressBar with an icon that its size increases and decreases through out the animation as shown in the pictures.
Upvotes: 3
Views: 2782
Reputation: 216
Use SeekBar instead of ProgressBar. Thumb property in seekbar put your icon image after progress.
SeekBar XML property-- android:thumb="drawable"
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:max="100"
android:thumb="@drawable/ic_pp" />
Upvotes: 4