当前位置:网站首页>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);
边栏推荐
- 《二》标签
- DJ-ZBS2漏电继电器
- Timer create timer
- Is it necessary to renew the PMP certificate?
- y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
- Weebly mobile website editor mobile browsing New Era
- JHOK-ZBG2漏电继电器
- AIDL 与Service
- 《5》 Table
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
猜你喜欢
随机推荐
Clickhouse (03) how to install and deploy Clickhouse
磁盘监控相关命令
局部变量的数组初始化问题
AOSP ~binder communication principle (I) - Overview
[PHP SPL notes]
Understand common network i/o models
线程同步的两个方法
《二》标签
Under the trend of Micah, orebo and apple homekit, how does zhiting stand out?
If you‘re running pod install manually, make sure flutter pub get is executed first.
高数中值定理总结
Torch optimizer small parsing
JVM(二十) -- 性能监控与调优(一) -- 概述
Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio
Harmonyos fourth training
[QT] custom control loading
利用OPNET进行网络单播(一服务器多客户端)仿真的设计、配置及注意点
基于Bevy游戏引擎和FPGA的双人游戏
How can professional people find background music materials when doing we media video clips?
JHOK-ZBL1漏电继电器









