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.




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" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With