WheelView

LatestVersion

Download

A wheel view library and demo

Scan QRCode to download demo application below:

1、implementation

2、attrs

名称 类型 描述
wheelTextColor color 选中item字体颜色
wheelTextSize dimension 字体大小
wheelShowCount integer 显示item条数,与wheelItemVerticalSpace决定了控件的高度
wheelTotalOffsetX dimension X轴方向总弯曲度,决定弧形效果
wheelItemVerticalSpace dimension 两个item之间的间距,与wheelShowCount决定了控件的高度
wheelRotationX float 已X轴为轴心旋转角度,决定3D效果
wheelVelocityUnits integer 自动翻滚速度单位
名称 类型 描述
wheelMaskLineColor color 中间选中item的两条分割线颜色
子View 类型 属性
wheelView WheelView WheelView所有属性
wheelMaskView WheelMaskView WheelMaskView所有属性

3、usage

组件 使用示例
WheelView WheelViewFragment
ColumnWheelDialog ColumnWheelFragment
DateTimeWheelDialog DateTimeWheelFragment

4、Screenshots

WheelView

WheelView WheelView WheelView WheelView WheelView

OneColumnWheelDialog OneColumnWheelDialog OneColumnWheelDialog OneColumnWheelDialog OneColumnWheelDialog

5、release log

version:0.5.0

LICENSE

   Copyright 2018 JustinRoom

   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.