Skip to content

An Android library to create an easy experience for adding and removing tags based on a wrapper around an EditText.

License

Notifications You must be signed in to change notification settings

RyPope/TagEditText

Repository files navigation

TagEditText

Build Status

Features:

  • Tap to remove a tag.
  • Modifiable radius, text appearance, background color and padding.

Usage

Add this in your root build.gradle at the end of repositories:

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

Add the dependency:

	dependencies {
		compile 'com.github.RyPope:TagEditText:1.0.4'
	}
    <com.ryanpope.tagedittext.TagEditText
        android:id="@+id/edit_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/TagEditText" />
    <style name="TagEditText">
        <item name="android:layout_margin">5dp</item>
        <item name="textBackgroundRadius">3dp</item>
        <item name="textBackgroundColor">@android:color/holo_orange_dark</item>
        <item name="textSize">30sp</item>
    </style>

Attributes:

        <attr name="textSize" format="dimension" />
        <attr name="textColor" format="color" />
        <attr name="textBackgroundColor" format="color" />
        <attr name="textBackgroundRadius" format="dimension" />
        <attr name="textPaddingTop" format="dimension" />
        <attr name="textPaddingBottom" format="dimension" />
        <attr name="textPaddingRight" format="dimension" />
        <attr name="textPaddingLeft" format="dimension" />

Screenshots

About

An Android library to create an easy experience for adding and removing tags based on a wrapper around an EditText.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages