yangzhanlong / WheelViewDemo

亲自操刀,撸了一个酷炫的防IOS的wheel view。支持多列滚轮弹窗,日期滚轮弹窗。原创不易,给颗Star✨支持一下,谢谢!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WheelView

LatestVersion

Download

A wheel view library and demo

Scan QRCode to download demo application below:

1、implementation

  • 1.1、Gradle
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

名称 类型 描述
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
  • 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.

About

亲自操刀,撸了一个酷炫的防IOS的wheel view。支持多列滚轮弹窗,日期滚轮弹窗。原创不易,给颗Star✨支持一下,谢谢!

License:Apache License 2.0


Languages

Language:Java 100.0%