当前位置:网站首页>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进行网络单播(一服务器多客户端)仿真的设计、配置及注意点
- Autowired注解用于List时的现象解析
- Salesforce 容器化 ISV 场景下的软件供应链安全落地实践
- 磁盘监控相关命令
- [question] Compilation Principle
- Leetcode (46) - Full Permutation
- Use Zhiyun reader to translate statistical genetics books
- 10 distributed databases that take you to the galaxy
- y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
- Record a pressure measurement experience summary
猜你喜欢
【问道】编译原理
高压漏电继电器BLD-20
在米家、欧瑞博、苹果HomeKit趋势下,智汀如何从中脱颖而出?
HarmonyOS第四次培训
Y58. Chapter III kubernetes from entry to proficiency - continuous integration and deployment (Sany)
带你遨游银河系的 10 种分布式数据库
Leetcode(46)——全排列
Weebly mobile website editor mobile browsing New Era
Under the trend of Micah, orebo and apple homekit, how does zhiting stand out?
利用OPNET进行网络指定源组播(SSM)仿真的设计、配置及注意点
随机推荐
Array initialization of local variables
AOSP ~binder communication principle (I) - Overview
Longest palindrome substring (dynamic programming)
项目经理如何凭借NPDP证书逆袭?看这里
Record a pressure measurement experience summary
QT控件样式系列(一)之QSlider
Phenomenon analysis when Autowired annotation is used for list
最全常用高数公式
ThinkPHP关联预载入with
AIDL 与Service
Torch optimizer small parsing
DBSync新增对MongoDB、ES的支持
Creation and use of thread pool
Linkedblockingqueue source code analysis - initialization
How can project managers counter attack with NPDP certificates? Look here
带你遨游银河系的 10 种分布式数据库
10 distributed databases that take you to the galaxy
Complete code of C language neural network and its meaning
Addressable 预下载
U++ metadata specifier learning notes