# IndicatorBar **Repository Path**: modificator/IndicatorBar ## Basic Information - **Project Name**: IndicatorBar - **Description**: SeekBar的简单实现,Thumb移动的距离是固定,原始SeekBar为了让让Thumb站的下会修剪Thumb移动的距离。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2016-01-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # IndicatorBar SeekBar的简单实现,Thumb移动的距离是固定,原始SeekBar为了让让Thumb站的下会修剪Thumb移动的距离。 ``` //track的厚度 //主题颜色 //高亮颜色 //滑块图片 //高亮滑块图片 //字体大小 //高亮字体的大小 //当前选中的position //最大值 //indicator偏移 //普通说明文字 //高亮最大值说明文字 ``` 以上对应的都有对应的java方法设置.. ``` final IndicatorBar ib = (IndicatorBar) findViewById(R.id.indicatorBar1); ib.setOnIndicatorChangeListener(new OnIndicatorChangeListener() { @Override public void onIndicatorChanged(IndicatorBar indicatorBar, int position, float xAtPosition) { Log.i("position"+position, "xAtPosition"+xAtPosition); } }); ib.setHightlightIndicators(new int[]{3,4,5});//高亮indicator配置,在下图中就是亮色的数字 ``` ![第一页](https://raw.githubusercontent.com/Bvin/IndicatorBar/master/assets/Screenshot.jpeg)