android - Custom Circular Progress Bar with solid circles -


i want have 1 circular progress bar

enter image description here

i tried not circular , how put animation along fades , because using same xml 6 circles.

 <?xml version="1.0" encoding="utf-8"?>  <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="horizontal" >  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="center"     android:layout_marginright="15dp"     android:orientation="vertical" >      <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginbottom="5dp"         android:src="@drawable/circle_shape_big_custom_search" />      <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_margintop="5dp"         android:src="@drawable/circle_shape_big_custom_search" /> </linearlayout>  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="center"     android:orientation="vertical" >      <imageview         android:layout_width="wrap_content"         android:layout_height="72dp"         android:src="@drawable/circle_shape_big_custom_search" />      <imageview         android:layout_width="wrap_content"         android:layout_height="72dp"         android:src="@drawable/circle_shape_big_custom_search" /> </linearlayout>  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="center"     android:layout_marginleft="15dp"     android:orientation="vertical" >      <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"          android:layout_marginbottom="5dp"         android:src="@drawable/circle_shape_big_custom_search" />      <imageview         android:layout_width="wrap_content"          android:layout_margintop="5dp"         android:layout_height="wrap_content"         android:src="@drawable/circle_shape_big_custom_search" /> </linearlayout> 

any appreciated.

define progress bar beloew code snip :

<progressbar         android:id="@+id/progress_bar"         android:layout_width="100dp"         android:layout_height="100dp"         android:layout_gravity="center"         android:indeterminatedrawable="@drawable/my_progress_indeterminate"         android:visibility="gone" >     </progressbar> 

my_progress_indeterminate.xml [place file in drawable]

<?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"     android:drawable="@drawable/image_for_rotation"     android:pivotx="50%"     android:pivoty="50%" /> 

place image file attched here in drawale : image_to_be_place_in_drawable


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -