Android generic loading animation showing on top of screen -


so have created loading animation view. i'm able show loading view in activity.

but want general loading animation can shown on top of screen in app. can call myloadingview.show(); , myloadingview.hide(); control it..

i wonder how can achieve that?

currently, it's inside 1 of activity layout:

<imageview android:id="@+id/registration_spinner"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_margin="50dp"         android:layout_alignparenttop="true"         android:layout_centerhorizontal="true"         android:background="@drawable/yalo_spinner"/> 

this spinner drawable:

<?xml version="1.0" encoding="utf-8"?>  <animation-list xmlns:android="http://schemas.android.com/apk/res/android"     android:oneshot="false">      <item android:drawable="@drawable/spinner1" android:duration="200" />     <item android:drawable="@drawable/spinner2" android:duration="200" />     <item android:drawable="@drawable/spinner3" android:duration="200" />     <item android:drawable="@drawable/spinner4" android:duration="200" />     <item android:drawable="@drawable/spinner5" android:duration="200" />     <item android:drawable="@drawable/spinner6" android:duration="200" />     <item android:drawable="@drawable/spinner7" android:duration="200" />     <item android:drawable="@drawable/spinner8" android:duration="200" />  </animation-list> 


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -