Skip to content

CustomTextView is a Customizable text view component that can use on Android. This component is a child of AppCompatTextView and almost all functionalities are inherited from TextView.

License

Notifications You must be signed in to change notification settings

ejChathuranga/custom-textview

Repository files navigation

Custom TextView

Welcome to Customizable TextView Component on Android

GitHub API

CustomTextView is a Customizable text view component that can use on Android. This component is a child of AppCompatTextView and almost all functionalities are inherited from TextView. Using the CustomTextView component, you can add a dotted underline and that can be customized.

Download

CustomTextView is available on mavenCentral().

Groovy(Java)

implementation 'io.github.ejchathuranga:custom-textview:1.1.1'

Kotlin

implementation("io.github.ejchathuranga:custom-textview:1.1.1")

Usage/Initialization

<io.github.ejchathuranga.ctv.CustomTextView
                android:id="@+id/ctv"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                app:ctvUnderlineColor="0xFFFF00FF"
                app:ctvUnderlinePadding="20"
                app:ctvUnderLineDotWidth="40"
                app:ctvUnderLineDotSpace="20" />
                
CustomTextView ctv = findViewById(R.id.ctv);

Functionalities

ctv.setUnderLineColor(0xFFFF00FF);
ctv.setUnderlineDotWidthAndSpace(55f, 5f);
ctv.setUnderlineThickness(55);
ctv.setUnderlinePadding(30);
ctv.reset();

About

CustomTextView is a Customizable text view component that can use on Android. This component is a child of AppCompatTextView and almost all functionalities are inherited from TextView.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages