Skip to content

mhashim6/Android-SeparatorView

Repository files navigation

SeparatorView

A simple view that can be used as separator between any two views, with customize-able styles.

Attributes:

attribute value documentation default value
app:lineStyle [solid, dashed, dotted] defines how the line should appear. solid
app:lineColor [color] defines the color of the line. black
app:dashWidth [dimension] defines the width of the dashes. 15px
app:dashGap [dimension] defines the width of the gaps between the dashes. 10px
app:orientation [horizontal,vertical] defines whether the line should appear vertically or horizontally. horizontal

Apps using this library:

Dependency:

Add it in your root build.gradle at the end of repositories:

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

Add the dependency:

dependencies {
    implementation 'com.github.mhashim6:SeparatorView:1.1'
}