Skip to content

修改系统tablayout:设置指示器宽高颜色 区分选中状态来设置文字大小 加粗.

Notifications You must be signed in to change notification settings

sufutian/Tablayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Tablayout

修改系统tablayout:设置指示器宽高颜色 区分选中状态来设置文字大小 加粗.

//设置tab 未选中/选中 文字颜色 tabLayout.setTabTextColors(getResources().getColor(R.color.text_color_black), getResources().getColor(R.color.text_color_black)); //设置tab未选中/选中 文字大小 tabLayout.setTabTextSize(40, 43); //设置tab文字选中时加粗 tabLayout.setTextSelectedBold(true); //设置指示器宽度 tabLayout.setTabIndicatorWidth(40); //设置指示器高度 tabLayout.setSelectedIndicatorHeight(6);

About

修改系统tablayout:设置指示器宽高颜色 区分选中状态来设置文字大小 加粗.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages