效果图:
简单分析:
- 初始化一些参数,设置数据,准备在onDraw方法中连续绘制TextView
- 计算出TextView绘制的坐标点,根据左滑还是右滑设置TextView之间间隙,大小,颜色
- 将seekbar注入进来,根据对调监听设置当前位置,进行重绘,绘制最新的数组列表
实现难点:
- 计算出绘制数组宽度与高度
- TextView绘制坐标与方式
- seekbar回调,改变哪一些值可以达到预期的滑动效果
- 往左滑计算方式,往右滑计算方式
- 设置不同状态下TextViewde参数
我的博客:详解
##License
Copyright (C) 2016 ruzhan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
