WheelView
Android 滚轮控件,基于 ListView 实现,可以自定义样式。
Features
- 支持自定义滚轮样式
- 支持 common 和 holo 两种皮肤
- 支持文本和图文混排两中数据模版
- 支持循环显示数据
- 支持选中项添加附加文本
- 支持设置滚轮刻度
- 支持联动功能
- 支持嵌入滚动控件中(NestedScrollView)
- 支持滚轮对话框
- 支持滚轮选中项点击事件
ScreenShot

Usage
Gradle:
compile 'com.wx.wheelview:wheelview:1.3.3'
导入 Eclipse:
Demo
Use the WheelView as a View, Java and XML are both supported.
Java:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main)
WheelView wheelView = (WheelView) findViewById(R.id.wheelview);
wheelView.setWheelAdapter(new ArrayWheelAdapter(this)); // 文本数据源
wheelView.setSkin(WheelView.Skin.Common); // common 皮肤
wheelView.setWheelData( ?); // 数据集合
}
}
XML:
<com.wx.wheelview.widget.WheelView
android:id="@+id/wheelview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
Methods:
| method 方法 | description 描述 |
|:--- |:---|
| void setWheelAdapter(BaseWheelAdapter
History
- 1.0.0(2016-03-24)
- 完成滚轮控件
- 1.1.0(2016-03-28)
- 支持联动功能
- 1.2.3(2016-04-14)
- 支持嵌入滚动控件
- 1.3.0(2016-04-15)
- 支持滚轮对话框
- 1.3.1(2016-04-18)
- 增加滚轮选中项点击事件
About
- Email:venshine.cn@gmail.com
License
Copyright (C) 2016 venshine.cn@gmail.com
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.
