android - Custom Circular Progress Bar with solid circles -
i want have 1 circular progress bar
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
Post a Comment