Change Tab Colors
ghulamsabir opened this issue · comments
Hello @ghulamsabir,
Thanks for trying out BubbleTabBar
can you please share the XML of BubbleTabBar
you might have given the background color as well as the colors of the tabs both purple.
P.S. if that's not the case kindly share the scenario where I can replicate this.
@akshay2211 bubbletab_disabled_icon_color not working
This is my code
<com.fxn.BubbleTabBar
android:id="@+id/bubbleTabBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:elevation="0dp"
android:padding="7dp"
app:bubbletab_disabled_icon_color="#ffffff"
app:bubbletab_horizontal_padding="20dp"
app:bubbletab_icon_size="20dp"
app:bubbletab_menuResource="@menu/menu_edit"
app:bubbletab_title_size="16sp"
app:bubbletab_vertical_padding="10dp" />
Replace the code in Bubble.kt
if (isEnabled) {
icon.setColorStateListAnimator(
color = item.iconColor,
unselectedColor = Color.parseColor("#1b1b1b")
)
}
by
if (isEnabled) {
icon.setColorStateListAnimator(
color = item.iconColor,
unselectedColor = item.disabled_icon_color
)
}`
Thank you!!
Hey @hoanganhtuan95ptit
Thanks for the help. it is updated in the new version 1.0.3