Skip to content

This is a textview for Android.For solve the question which the textview can't write two style words in a textview.

Notifications You must be signed in to change notification settings

changfeifan/MutiTextView

Repository files navigation

MutiTextView for Android

this is a Textview for solve the problem which is the normal textView can not enter two styles words.

So I write this one.

Examples

MacDown logo

Download

Gradle:

First write at the build.gradle (Project).

allprojects {
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

then write at the build.gradle (app or which projcect you want to use).

dependencies {
	compile 'com.github.changfeifan:MutiTextView:1.0.1'
}

How to use

write this in your layout.

<com.changfeifan.mutitextview.MutiTextView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     app:leftText="DemoLeft"
     app:leftTextColor="#000000"
     app:leftTextSize="12dp"
     app:rightText="DemoRight"
     app:rightTextColor="#00FF00"
     app:rightTextSize="30dp" />

v1.0.1 added & fix

you can use new functions to set the text.

setTextLeft(String string);
setTextRight(String string);

or get the Text

getTextLeft();
getTextRight();

Contact

wechat: changfeifan002

Email: [email protected] / [email protected]

About

This is a textview for Android.For solve the question which the textview can't write two style words in a textview.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages