Skip to content

Latest commit

Β 

History

History
94 lines (51 loc) Β· 1.31 KB

File metadata and controls

94 lines (51 loc) Β· 1.31 KB

LineView Android !

☒️ What's a LineView ?

LineView can be used to display book like lines e.g in note taking app, or any scribble app

Any feedback please DM 😊


🌻 Usage

<com.shazdroid.lineview.LineView
        android:id="@+id/lineView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white"/>

There are some custom options below.

Kotlin

  val lineView = findViewById<LineView>(R.id.lineView)
  
  // change width of strokes //
  lineView.setLineWidth(2.5f)
  
  // change color of strokes //
  lineView.setLineColor(Color.BLACK)
  
  // change line height (takes Int values)//
  lineView.setLineHeight(10)  

Installation

dependencies {
   implementation 'com.github.shazDroid:LineView:1.0.0'
}

πŸ’™ Contributing

PR's are welcome !

Found a Bug ? Create an Issue.


πŸ’– Like this project ?

Leave a ⭐ If you think this project is cool.

Share with the world ✨


πŸ‘¨β€πŸ’» Author

Shahbaz Ansari

shahbazansari52@gmail.com


🍁 Licence

MIT