WheelViewDemo

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

LatestVersion

Download

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

名称 类型 描述
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.
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea