I want to show a progress Circle in my app while loading data. I have an activity and moving from one activity to another I am parsing some xml data so for the time being until the parsing is completed I want to show a circular loading effect.
You can use an indeterminate ProgressBar for the circular loading effect. Here is how you do it in XML:
<ProgressBar android:indeterminate="true"
android:layout_width="50dp" android:layout_height="50dp"
android:id="@+id/marker_progress" style="?android:attr/progressBarStyle"
android:layout_gravity="center_vertical|center_horizontal"/>
You can change the height and width to be what you want. When you are done loading, you can change it's visibility to View.INVISIBLE or View.GONE