当前位置:网站首页>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);
边栏推荐
猜你喜欢

AOSP ~binder communication principle (I) - Overview

Autowired注解用于List时的现象解析

利用OPNET进行网络仿真时网络层协议(以QoS为例)的使用、配置及注意点

Record a pressure measurement experience summary

Full link voltage test: the dispute between shadow database and shadow table

Complete code of C language neural network and its meaning

JVM(十九) -- 字节码与类的加载(四) -- 再谈类的加载器

Leetcode(417)——太平洋大西洋水流问题

Understand common network i/o models

Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
随机推荐
DBSync新增对MongoDB、ES的支持
线程池的创建与使用
CentOS 7.9安装Oracle 21c历险记
[QT] custom control loading
LinkedBlockingQueue源码分析-初始化
PMP证书有没有必要续期?
3. Type of fund
Simulate thread communication
LabVIEW在打开一个新的引用,提示内存已满
Longest palindrome substring (dynamic programming)
Is the human body sensor easy to use? How to use it? Which do you buy between aqara green rice and Xiaomi
DFS,BFS以及图的遍历搜索
【js组件】自定义select
Error: No named parameter with the name ‘foregroundColor‘
y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
np. random. Shuffle and np Use swapaxis or transfer with caution
QSlider of QT control style series (I)
人体传感器好不好用?怎么用?Aqara绿米、小米之间到底买哪个
Dbsync adds support for mongodb and ES
The founder has a debt of 1billion. Let's start the class. Is it about to "end the class"?