How to change Tab Indicator color programmatically

前端 未结 5 733
梦如初夏
梦如初夏 2021-01-19 19:04

I am new to Android, and before starting programming i found that now a days many of the apps are using Fragments, especially Tab with

5条回答
  •  难免孤独
    2021-01-19 19:51

    You'll want to chain

    setIcon(R.drawable.ic_icon_name_here)
    

    for your tabs to have icons

    For the tab colors you'll want to use a custom style, for more info on those solutions take a look at How do I change the background of an Android tab widget?

提交回复
热议问题