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

WheelViewDemo

项目地址:JustinRoom/WheelViewDemo

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

更多:作者   提 Bug

标签:

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 jsc.kit.wheel

wheel-view

_latestVersion

pom

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

014ef3aa752f06f0609c1272579c350d.png

4.2、ColumnWheelDialog

424fa63bb719640402e18243dcd778df.png72d74be569255b6a5e4fe02c6dd7ad98.pngc9d6070641511faa1e397f51c60ef3f1.pngb2b55e77386ae4509a767571a8006686.png87e273be4022850584a2f1386157fea3.png

4.3、DateTimeWheelDialog

5f6d65806705e67e114c216cf6b36ddd.png920a0287dce242c2e8a1d4d707889913.pngfa6b1976f14e84da708e2b4f76d743d1.png77ae92ce76c196118c92b626a02d5094.png84eb6846b4b22361e7f74ee3bd50a35b.png

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值