当前位置:网站首页>TabLayout修改自定义的Tab标题不生效问题
TabLayout修改自定义的Tab标题不生效问题
2022-07-06 23:29:00 【唐诺】
设置自定义的Tab时,调用了:
tab.setCustomView();
修改自定义Tab标题时,需要通过getCustomView()获取到自定义的Tab View:
TextView textView= nViewDataBinding.tabTodo.getTabAt(index).getCustomView().findViewById(R.id.tab_item_textview);
textView.setText(title + numStr);
边栏推荐
- 利用OPNET进行网络指定源组播(SSM)仿真的设计、配置及注意点
- How can professional people find background music materials when doing we media video clips?
- Addressable 预下载
- App embedded H5 --- iPhone soft keyboard blocks input text
- np.random.shuffle与np.swapaxis或transpose一起时要慎用
- Sublime tips
- Vector and class copy constructors
- SQL injection HTTP header injection
- [QT] custom control loading
- QT控件样式系列(一)之QSlider
猜你喜欢
随机推荐
torch optimizer小解析
app clear data源码追踪
Longest non descent subsequence (LIS) (dynamic programming)
JHOK-ZBL1漏电继电器
数字化如何影响工作流程自动化
最长公共子序列(LCS)(动态规划,递归)
2039: [Bluebridge cup 2022 preliminaries] Li Bai's enhanced version (dynamic planning)
K6EL-100漏电继电器
局部变量的数组初始化问题
Knapsack problem unrelated to profit (depth first search)
《四》表单
最长不下降子序列(LIS)(动态规划)
最长回文子串(动态规划)
Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio
SQL injection HTTP header injection
Under the trend of Micah, orebo and apple homekit, how does zhiting stand out?
高数中值定理总结
No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
【js组件】date日期显示。
App embedded H5 --- iPhone soft keyboard blocks input text









