To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.mukkumukesh:strikeTextVievSample:v1.0'
}
XML Properties
There are some custom properties which you can use
1. To change font family use app:fontName="Titillium-Regular.otf"
2. To change line color use app:lineColor="#FF4081"
3. To change line height use app:lineHeight="5"
Example
<com.sample.striketextview.StrikeTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="@dimen/margin_large"
android:text="@string/app_name"
app:lineColor="@color/colorAccent"
app:lineHeight="5" />