
I want to show this image in Imageview as the default. I set it up as a Bitmap, but it's not spinning.
Please, help me show the spinning image.
Have ImageView and a ProgressBar inside a FrameLayout. Inside your OnCreate() method add this,
progressBar.setVisibility(View.VISIBLE);
imageView.setVisibility(View.INVISIBLE);
Load your image now. After loading it, call this:
progressBar.setVisibility(View.INVISIBLE);
imageView.setVisibility(View.VISIBLE);
ProgressBar
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@android:style/Widget.ProgressBar.Small"
/>
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