AndroidTagView
An Android TagView library. You can customize awesome TagView by using this library.
Screenshots
Usage
Step 1
Add below dependency in your build.gradle file.
dependencies {
compile 'co.lujun:androidtagview:1.1.4'
}
Step 2
Use the AndroidTagView in layout file, you can add customized attributes here.
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="10dp"
app:container_enable_drag="false"
app:horizontal_interval="10dp"
app:vertical_interval="10dp"
app:tag_clickable="true"
app:tag_theme="pure_teal" />
Step 3
Use TagView in your code.
TagContainerLayout mTagContainerLayout = (TagContainerLayout) findViewById(R.id.tagcontainerLayout);
mTagContainerLayout.setTags(List tags);
Now, you have successfully created some TagViews. The following will show some more useful features for you customize.
Attributes
name
format
description
vertical_interval
dimension
Vertical interval, default 5(dp)
horizontal_interval
dimension
Horizontal interval, default 5(dp)
container_border_width
dimension
TagContainerLayout border width(default 0.5dp)
container_border_radius
dimension
TagContainerLayout border radius(default 10.0dp)
container_border_color
color
TagContai