AndroidTagView icon indicating copy to clipboard operation
AndroidTagView copied to clipboard

Tag background color not changing

Open rameshsambu-dev opened this issue 6 years ago • 4 comments

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

rameshsambu-dev avatar Apr 26 '18 06:04 rameshsambu-dev

The TagView's background or the container's background?

whilu avatar Apr 28 '18 12:04 whilu

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"

InsaneDoggo avatar May 09 '18 19:05 InsaneDoggo

change the tag_theme doesn't work for me either..both in xml and programatically. Can anyone confirm this indeed worked for them?

royherma avatar Nov 09 '18 11:11 royherma

@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

asadmukhtar28 avatar Dec 06 '19 20:12 asadmukhtar28