Animate View Around Semi Circle on corner of fragment/activity
Usage Gradle Build
implementation 'com.github.manjeetbrar91:Semi-Circle-Animation:1.0.3.2'
In Layout XML File
<com.mj.semicircleanimation.SemiCircleAnimationView
android:id="@+id/customView"
android:layout_width="150dp"
android:layout_height="150dp"
android:background="@android:color/transparent"
app:anim_duration="4000"
app:animated_circle_color="@color/cardview_dark_background"
app:animated_circle_width="16dp"
app:inner_circle_color="@color/colorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:position="top_left"
app:primary_circle_border_color="@color/colorPrimaryDark" />
Attributes
- inner_circle_color : fill color of inner circle
- primary_circle_border_color : outer circle border color
- primary_circle_border_width: outer circle border stroke width
- anim_duration : Animation duration in seconds
- animated_circle_width : Width of smallest circle which will animate.
- position = top_left, top_right, bottom_left, bottom_right
- anim_reverse = true : Bottom to Top Animation, false : Top to Bottom Animation