package cn.wildfire.chat.kit.widget; import cn.wildfire.chat.kit.R; /** * @author kimi * @description * @date 2020-12-21 12:52 */ public class TagItem { private String name; private boolean isDefault; private final int defaultBgResource = R.drawable.round_rectangle_bg; private int textBg; private int bgSelector = defaultBgResource; private boolean isShow = true; public TagItem() { } public TagItem(String name) { this.name = name; isDefault = false; } public TagItem(String name, boolean isDefault) { this.name = name; this.isDefault = isDefault; } public boolean isShow() { return isShow; } public TagItem setShow(boolean show) { isShow = show; return this; } public String getName() { return name; } public void setName(String name) { this.name = name; } public boolean isDefault() { return isDefault; } public void setDefault(boolean aDefault) { isDefault = aDefault; } public int getTextBg() { return textBg; } public TagItem setTextBg(int textBg) { this.textBg = textBg; return this; } public int getBgSelector() { return bgSelector; } public TagItem setBgSelector(int bgSelector) { this.bgSelector = bgSelector; return this; } }