当前位置:网站首页>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);
边栏推荐
- Under the trend of Micah, orebo and apple homekit, how does zhiting stand out?
- 痛心啊 收到教训了
- Safe landing practice of software supply chain under salesforce containerized ISV scenario
- AOSP ~binder communication principle (I) - Overview
- 照片选择器CollectionView
- Batch normalization (Standardization) processing
- If you want to choose some departments to give priority to OKR, how should you choose pilot departments?
- window定时计划任务
- Longest non descent subsequence (LIS) (dynamic programming)
- [QT] custom control loading
猜你喜欢
随机推荐
3. Type of fund
线程池的创建与使用
Addressable 预下载
Timer create timer
最长回文子串(动态规划)
Wonderful express | Tencent cloud database June issue
JVM(二十) -- 性能监控与调优(一) -- 概述
SQL injection - secondary injection and multi statement injection
【问道】编译原理
精彩速递|腾讯云数据库6月刊
np.random.shuffle与np.swapaxis或transpose一起时要慎用
[question] Compilation Principle
app clear data源码追踪
数字化如何影响工作流程自动化
Addressable pre Download
【opencv】图像形态学操作-opencv标记不同连通域的位置
拿到PMP认证带来什么改变?
漏电继电器JOLX-GS62零序孔径Φ100
痛心啊 收到教训了
Simulate thread communication








