justinroom / wheelviewdemo Goto Github PK
View Code? Open in Web Editor NEW防IOS的wheel view。支持多列滚轮弹窗,日期滚轮弹窗。
License: Apache License 2.0
防IOS的wheel view。支持多列滚轮弹窗,日期滚轮弹窗。
License: Apache License 2.0
我参考你的代码实现了此功能,界面如下,但希望能够由你来完善此功能
(http://upya.vip/src/xxx.png)
12-10 09:27:31.490 2362-2362/jsc.exam.com.wheelview E/AndroidRuntime: FATAL EXCEPTION: main
Process: jsc.exam.com.wheelview, PID: 2362
java.lang.NoSuchMethodError: jsc.exam.com.wheelview.widgets.DotView.setClipToOutline
at jsc.exam.com.wheelview.widgets.DotView.initAttr(DotView.java:61)
at jsc.exam.com.wheelview.widgets.DotView.(DotView.java:46)
at jsc.exam.com.wheelview.widgets.JSCItemLayout.initAttr(JSCItemLayout.java:88)
at jsc.exam.com.wheelview.widgets.JSCItemLayout.(JSCItemLayout.java:39)
at jsc.exam.com.wheelview.adapter.ClassItemAdapter.createView(ClassItemAdapter.java:29)
at jsc.exam.com.wheelview.adapter.ClassItemAdapter.onCreateViewHolder(ClassItemAdapter.java:50)
at jsc.exam.com.wheelview.adapter.ClassItemAdapter.onCreateViewHolder(ClassItemAdapter.java:14)
DateTimeWheelDialog onCreate初始化方法,应该同时初始化监听器,否则月份会出Bug。
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
if (getWindow() != null) {
getWindow().setGravity(Gravity.BOTTOM);
getWindow().setBackgroundDrawable(null);
getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT);
}
setContentView(R.layout.wheel_dialog_base);
initView();
initOnScrollListener(); !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}
例如;预约时间,之前的时间就禁止选择
第一次打开滚轮,进行时间选择时显示的月份为前一月但点击确认按钮后显示的为当前月,当进行月份滚动选择后,所显示月份正确
wheelView 没有自适应布局,目前是撑满宽度,无法灵活布局,比如横屏的时候。
时间选择,2月的天,发现有30,31。这个不打算修复吗
其中获取 wheelVelocityUnits 属性使用了wheelRotationX 属性值。
wheelRotationX = a.getFloat(R.styleable.WheelView_wheelRotationX, DEFAULT_ROTATION_X);
velocityUnits = a.getInteger(R.styleable.WheelView_wheelRotationX, DEFAULT_VELOCITY_UNITS);
Failed to resolve: jsc.kit Show in File
第一次打开时间选择器显示的不是当月的月份,而是显示的上月的月份。关闭弹框再打开显示正常,再关闭再打开显示异常。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.