This is an Android projects containing view with beautiful animation. Inspired by Jordan Nelson.
To start using ZodiacView in your project just follow next steps:
Step 1: add mavenCentral()
to your repositories
Step 2: add io.github.naivekook.zodiacview:zodiacview:1.1
to your dependencies
<io.github.naivekook.zodiacview.ZodiacView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
You must use the following properties in your XML to change your ZodiacView.
#####Properties:
app:zv_color_relation
(color) -> default "#49348b"app:zv_color_star
(color) -> default "#49348b"app:zv_color_bg
(color) -> default "#16151f"app:zv_speed
(float) -> default 0.7fapp:zv_distance
(int) -> default 200app:zv_star_count
(int) -> default 30app:zv_star_size_max
(int) -> default 20app:zv_star_size_min
(int) -> default 10app:zv_relation_size
(int) -> default 5app:zv_interaction_enabled
(boolean) -> default false
val zodiacConfig = ZodiacConfig(
starCount = 10,
speed = 5f,
colorStar = R.color.colorAccent,
colorRelation = R.color.colorAccent,
interactionEnabled = true
)
val zodiacView = ZodiacView.setup(this, zodiacConfig)
ZodiacView by Vladimir Tanakov is licensed under a Apache License 2.0.