Skip to content

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" />
 <stylename="TagEditText">
<itemname="android:layout_margin">5dp</item>
<itemname="textBackgroundRadius">3dp</item>
<itemname="textBackgroundColor">@android:color/holo_orange_dark</item>
<itemname="textSize">30sp</item>
</style>

Attributes:

 <attrname="textSize"format="dimension" />
<attrname="textColor"format="color" />
<attrname="textBackgroundColor"format="color" />
<attrname="textBackgroundRadius"format="dimension" />
<attrname="textPaddingTop"format="dimension" />
<attrname="textPaddingBottom"format="dimension" />
<attrname="textPaddingRight"format="dimension" />
<attrname="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

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages