当前位置:网站首页>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);
边栏推荐
- 最长不下降子序列(LIS)(动态规划)
- JVM(十九) -- 字节码与类的加载(四) -- 再谈类的加载器
- Understand common network i/o models
- AOSP ~binder communication principle (I) - Overview
- Is the human body sensor easy to use? How to use it? Which do you buy between aqara green rice and Xiaomi
- Auto.js 获取手机所有app名字
- Leetcode(46)——全排列
- Knapsack problem unrelated to profit (depth first search)
- 拿到PMP认证带来什么改变?
- U++ game learning notes
猜你喜欢
随机推荐
SQL injection cookie injection
痛心啊 收到教训了
U++4 interface learning notes
Array initialization of local variables
Safe landing practice of software supply chain under salesforce containerized ISV scenario
使用知云阅读器翻译统计遗传学书籍
Addressable 预下载
How can project managers counter attack with NPDP certificates? Look here
Linkedblockingqueue source code analysis - initialization
Vector and class copy constructors
Longest non descent subsequence (LIS) (dynamic programming)
Annotation初体验
照片选择器CollectionView
Leetcode (46) - Full Permutation
Wonderful express | Tencent cloud database June issue
What changes will PMP certification bring?
项目经理如何凭借NPDP证书逆袭?看这里
线程池的创建与使用
Leetcode(46)——全排列
模拟线程通信