Skip to content

liuhaizhu/ChooseEditText

Repository files navigation

ChooseEditText

ChooseEditText is an edit that can add tag in edit space

Gradle Dependency

compile 'com.chooseedittext:library:1.0.0'

Usage

Declare it inside your layout XML file like this:

    <com.library.ChooseEditText
        android:id="@+id/chooseedittext"
        app:cet_Hint="Input content "
        app:cet_TextSize="10sp"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:layout_margin="4dp">
    </com.library.ChooseEditText>

add tag

String text="Nike";
chooseEditText.addItem(text);

To monitor text changes

chooseEditText.setOnChooseEditTextListener(new OnChooseEditTextListener() {
			@Override
			public void onTextChangeed(String text) {
			// do something
				tvResult.setText(text);
			}
		});

About

ChooseEditText is an edit that can add tag in edit space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages