Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有办法区分设置选中字体大小,未选中的字体大小吗? #531

Open
wwg90 opened this issue Aug 9, 2021 · 2 comments
Open

Comments

@wwg90
Copy link

wwg90 commented Aug 9, 2021

No description provided.

@jansonjoan
Copy link

我也有这个需求

@zhouchong741
Copy link

zhouchong741 commented Oct 9, 2021

我也有这个需求

我是这样解决选中字体变大变粗体的
版本:2.1.2@aar

  1. 设置选中字体为粗体(具体可看源代码)
    CommonTabLayout
    app:tl_textBold="SELECT"
  2. 配合 ViewPager2 使用切换 Tab 时设置字体大小
    tabLayout.getTitleView(position).textSize = 17f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants