AndroidTagView
AndroidTagView copied to clipboard
Tag background color not changing
tagLanguage.setTheme(ColorFactory.NONE); tagLanguage.setTagBackgroundColor(Color.WHITE);
I used the above code but still it didn't change the background color of the application
The TagView's background or the container's background?
This might happen due to xml attribute app:tag_theme="pure_teal". Especially if you copy paste example from readme. Btw when you change theme dynamically it applies to newly added tags only - bad architecture design?
Solution: use xml: app:tag_theme="none"
change the tag_theme
doesn't work for me either..both in xml and programatically. Can anyone confirm this indeed worked for them?
@royherma check this
<co.lujun.androidtagview.TagContainerLayout android:id="@+id/tags_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="8dp" app:tag_theme="none" android:layout_marginEnd="16dp" app:container_background_color="@color/colorWhite" app:container_border_color="#FAFAFA" app:tag_background_color="#888888" app:tag_background="#888888" app:tag_clickable="true" app:tag_text_color="#ffffff" />
this is working example