Popularity
0.5
Stable
Activity
0.0
Stable
5
1
1

Programming language: Kotlin
License: Apache License 2.0
Latest version: v1.0.0

BarberPoleView alternatives and similar packages

Based on the "Kotlin" category.
Alternatively, view BarberPoleView alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of BarberPoleView or a related project?

Add another 'Kotlin' Package

README

BarberPoleView

Customizable animated BarberPoleView for Android.

Requirements

This view requires at least Android API 16. The view is written in Kotlin, which means Kotlin dependencies will be added to your Application.

Usage

Including the view in a XML layout file:

<com.brainasaservice.barberpoleview.BarberPoleView
    android:layout_width="match_parent"
    android:layout_height="16dp"
    android:layout_marginTop="164dp"
    app:line_rotation="75"
    app:line_width="4dp"
    app:animated="true"
    app:colors="@array/barbercolor"
    app:animation_duration="100" />

Example for a customized color array:

<integer-array name="barbercolor">
    <item>@color/colorPrimary</item>
    <item>@color/colorPrimaryDark</item>
    <item>@color/colorAccent</item>
</integer-array>

The animation_speed attribute defines the speed multiplier. Since there this is an "infinite" animation, the animation_duration will be multiplied with the amount of colors in the colors array to ensure that the animation runs flawless.

The default values are:

  • Line rotation: 45 (degrees)
  • Animation duration: 100ms
  • Line width: 4dp
  • Animated: true
  • Colors: red / white / blue / white

[Example Screenshot](art/sample_screenshot.png "Example Screenshot")

Download

Repository:

repositories {
    maven {
        url  "https://dl.bintray.com/damian-burke/maven"
    }
}

Gradle dependency:

implementation 'com.brainasaservice:barberpoleview:1.0.0'

License

This software is released under the Apache License v2.

Copyright

Copyright 2018 Damian Burke


*Note that all licence references and agreements mentioned in the BarberPoleView README section above are relevant to that project's source code only.