Android circular indeterminate spinner progress bar

drawable/circular_spinner.xml, this xml defines the circular rotation animation on a spinner icon. Change the doDegrees and duration to control the speed of the spinning.



activity_main.xml, this is a layout xml file with an indeterminate ProgressBar in the center. It uses the above drawable/circular_spinner.xml as the value of android:indeterminateDrawable




    
    


Complete example in Github

Search within Codexpedia

Custom Search

Search the entire web

Custom Search