DatePicker icon indicating copy to clipboard operation
DatePicker copied to clipboard

大神,如何设置控件只能向右滑动、不能上下或者向左滑动啊

Open lv910929 opened this issue 8 years ago • 1 comments

@AigeStudio

lv910929 avatar Apr 29 '16 08:04 lv910929

MonthView里有个MonthView枚举方法,HOR(横向滑动),VER(上下滑动),注释掉VER并删掉报错的代码(跟VER相关的);然后onDraw方法里draw(canvas, width * indexMonth, (indexYear - 1) * height, topYear, topMonth);跟draw(canvas, width * indexMonth, (indexYear + 1) * height, bottomYear, bottomMonth);这两行代码删掉就可以了。

Haofengshang avatar Apr 29 '16 10:04 Haofengshang