DottedLineView

Additional

Language
Kotlin
Version
1.0.0 (Apr 15, 2018)
Created
Apr 14, 2018
Updated
Apr 15, 2018 (Retired)
Owner
Ghedeon
Contributor
Ghedeon
1
Activity
Badge
Generate
Download
Source code

Advertisement

DottedLineView

As you might have guessed it's a line and it's dotted.

Import

Sptep 1. Add jitpack to your root build.gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency:

dependencies {
    implementation 'com.github.ghedeon:dottedLineView:1.0.0'
}

Usage

XML:
<com.ghedeon.dottedlineview.DottedLineView
        android:layout_width="12dp"
        android:layout_height="match_parent"
        app:radius="4dp"
        app:minGap="8dp"
        app:color="@color/colorAccent" />
Programmatically:
with(dotted_line as DottedLineView) {
            color = Color.BLACK
            radius = 16f
            gap = 16f
        }
Supported attributes:
attr description
radius dot radius
minGap gap between dots
color dots color