- More Share: www.catbro.cn
Create a project
Detailed methods
Method name | Parameter Description | Function Description |
---|---|---|
void setSelectedTabIndicatorColor(@ColorInt int color) | Incoming color values corresponding to the available Color.parseColor ( "# 009AFF") parses | Set the current selected tab tab indicator color |
void setSelectedTabIndicatorHeight(int height) | Unit px, dp need to be converted | The height indicator provided |
void setTabTextColors(int normalColor, int selectedColor) | Incoming color values | Set different states (normal, selected) for the tab text color |
setTabMode(int mode) | MODE_FIXED: Fixed tab displays all tabs at the same time, benefit from the most suitable for Quick fulcrum between tabs. MODE_SCROLLABLE: scrollable tab displays a subset of the tabs at any given moment, and may include a longer tab label and a greater number of tabs. When no direct comparison tag label, they are best suited for browsing context touch interface. This mode is usually used in conjunction with ViewPager. |
Settings tab behavior patterns |
void setTabIndicatorFullWidth(boolean tabIndicatorFullWidth) | true or false,default is true | Is set at the bottom of the tab label indicates the line width of the full support of the current tab tab width, the width of the tab title indicator line width if you want to have, it can be set to false |
Related Reading
- TabLayout Android development of the uses detailed
- vscode daily tips collected
- JobService use of Android's Detailed Cheats
- Detailed development of Android TextView Properties
- Windows qt error Qt version assigned to this project for platform Win32.Please use the xx
- react-native-router-flux使用详解(二)
- NumPy创建各种类型、结构数组的快捷方法
- Kotlin系列(二十五):秘技之可观察属性
- JobService循环调度人任务间隔低于15分钟的实现方式
- 算法回顾篇:插入排序进阶之希尔排序