How to change the title of the Tab Dynamically

前端 未结 3 1993
花落未央
花落未央 2020-12-11 18:14

I have three tabs in my Application. On an event under one Tab, i want to change the title of an another existing Tab. This is the title that we provide while adding the tab

3条回答
  •  醉梦人生
    2020-12-11 18:44

    Rather than setting the indicator as a String, use one where you set the View to be used. Then, you can hold onto that View (e.g., a TextView) and change its contents as needed.

提交回复
热议问题