- A+
所属分类:Android开源
An Android TagView library. You can customize awesome TagView by using this library.
看效果图:

Step 1
- dependencies {
- compile 'co.lujun:androidtagview:1.0.3'
- }
Step 2
Use the AndroidTagView in layout file, you can add customized attributes here.
- <co.lujun.androidtagview.TagContainerLayout
- 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<String> tags);
"whilu" / "androidtagview"
这个仓库不存在或已被移除。
2016-05-17 23:08 沙发
多谢分享,用上了。
2016-05-18 09:10 板凳
支持!