๐ฅ TagGroupView โ a convenient widget for tags on Android!
<custom.tag.view.TagGroupView android:id="@+id/tagGroupView" android:layout_width="match_parent" android:layout_height="wrap_content"/>
Add, remove, and style tags beautifully and easily ๐จ
โ Functions:
โ Adding tags: addTag(Tag tag)
โ Removing: removeTag(int position)
๐งน Clearing: clear()
๐จ Style settings: text color, background, border, text size, rounding, close icon
๐ Closing tags: setClosable(true)
๐ Getting data: names, colors, full details
๐ Spacing between tags: setHorizontalSpacing(), setVerticalSpacing() ๐ Removal listener: setOnTagRemoveListener()
๐ป Usage example:
tagGroupView.addTag(new Tag("Android", Color.BLUE)); tagGroupView.setTextColor(Color.WHITE); tagGroupView.setBackgroundColor(Color.DKGRAY); tagGroupView.setCornerSize(16f); tagGroupView.setClosable(true);
You can learn more in the skpro project.
Telegram: https://t.me/sketchware95
©2025 Sketchub | User Policy