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


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:


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

allprojects {
    repositories {
    maven { url '' }

Add the dependency:

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