Devlight / Devlight/NavigationTabBar

A blinking issue occurs when changing the tab index.

Open
#90 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4.9k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

tab.kt code :
```
models.add(
NavigationTabBar.Model.Builder(
ContextCompat.getDrawable(this, R.drawable.and_general_bottom_bar_home_normal_bt),
ContextCompat.getColor(this, R.color.white))
.selectedIcon(ContextCompat.getDrawable(this, R.drawable.and_general_bottom_bar_home_active_bt))
.build()
)
models.add(
NavigationTabBar.Model.Builder(
ContextCompat.getDrawable(this, R.drawable.and_general_bottom_bar_list_normal_bt),
ContextCompat.getColor(this, R.color.white))
.selectedIcon(ContextCompat.getDrawable(this, R.drawable.and_general_bottom_bar_list_active_bt))
.build()
)
```

and xml code :
```

```

When I run the above code, whenever I change the tab, the image changes from inactive to active, causing the flickering to occur. I think it looks awkward. Is there a way to fix it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.