Skip to content

This custom strike text view provide the cross text. Using this you can modify line height, color and also provide custom font. Welcome your suggestion if any

Notifications You must be signed in to change notification settings

mukkumukesh/strikeTextVievSample

Repository files navigation

Strike Text VieW Sample

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" />
  

About

This custom strike text view provide the cross text. Using this you can modify line height, color and also provide custom font. Welcome your suggestion if any

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages