IndexBarLayout
IndexBarLayout copied to clipboard
添加设置IndexBar背景颜色的功能
这次主要做了两方面的工作:
- 添加了设置IndexBar背景颜色的功能,而且可以分为默认和手指按下时两种;
- 为颜色参数添加@ColorInt注解,传参时更加严谨。
希望可以接纳。另外,后面会试试看能不能实现IndexBar背景设置圆角矩形的功能。
抱歉,里面设置默认背景色的方法有点问题,漏了一行,应为
public void setNorBarBgColor(@ColorInt int norBarBgColor) { this.norBarBgColor = norBarBgColor; mBarBgPaint.setColor(norBarBgColor); }
带来的不便请多多包涵。