WheelView
LatestVersion
A wheel view library and demo
Scan QRCode to download demo application below:
1、implementation
- 1.1、Gradle
implementation 'com.android.support:appcompat-v7:XXX'
compile 'jsc.kit.wheel:wheel-view:_latestVersion'
- 1.2、Maven
<dependency>
<groupId>jsc.kit.wheel</groupId>
<artifactId>wheel-view</artifactId>
<version>_latestVersion</version>
<type>pom</type>
</dependency>
2、attrs
- 2.1、WheelView
名称 | 类型 | 描述 |
---|---|---|
wheelTextColor |
color | 选中item字体颜色 |
wheelTextSize |
dimension | 字体大小 |
wheelShowCount |
integer | 显示item条数,与wheelItemVerticalSpace 决定了控件的高度 |
wheelTotalOffsetX |
dimension | X轴方向总弯曲度,决定弧形效果 |
wheelItemVerticalSpace |
dimension | 两个item之间的间距,与wheelShowCount 决定了控件的高度 |
wheelRotationX |
float | 已X轴为轴心旋转角度,决定3D效果 |
wheelVelocityUnits |
integer | 自动翻滚速度单位 |
- 2.2、WheelMaskView
名称 | 类型 | 描述 |
---|---|---|
wheelMaskLineColor |
color | 中间选中item的两条分割线颜色 |
- 2.3、WheelItemView
子View | 类型 | 属性 |
---|---|---|
wheelView |
WheelView | WheelView所有属性 |
wheelMaskView |
WheelMaskView | WheelMaskView所有属性 |
3、usage
组件 | 使用示例 |
---|---|
WheelView | WheelViewFragment |
ColumnWheelDialog | ColumnWheelFragment |
DateTimeWheelDialog | DateTimeWheelFragment |
4、Screenshots
- 4.1、WheelView
5、release log
version:0.5.0
- optimize WheelMaskView:
- change
wheelRotationX
(attribution) to float - add
wheelVelocityUnits
(attribution)
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.