- Tap to remove a tag.
- Modifiable radius, text appearance, background color and padding.
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> <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" />

