基本完成“主要”级别错误的改动。

This commit is contained in:
qinjiaming_branch 2016-08-28 20:41:57 +08:00
parent dc2b814182
commit a748034f71
4 changed files with 11 additions and 7 deletions

View File

@ -164,11 +164,10 @@ public class MultiViewGroup extends ViewGroup {
//手指位置地点
float x = event.getX();
switch(event.getAction()){
case MotionEvent.ACTION_DOWN:
//如果屏幕的动画还没结束你就按下了我们就结束该动画
if(mScroller != null){
if(!mScroller.isFinished())
{mScroller.abortAnimation();}}
case MotionEvent.ACTION_DOWN: //如果屏幕的动画还没结束你就按下了我们就结束该动画
if(mScroller != null&&!mScroller.isFinished()){
mScroller.abortAnimation();
}
mLastionMotionX = x ;
break ;
case MotionEvent.ACTION_MOVE:

View File

@ -136,13 +136,18 @@ public class DateTimePickDialogUtil implements OnDateChangedListener, OnTimeChan
String hourStr = spliteString(time, ":", "index", "front"); //
String minuteStr = spliteString(time, ":", "index", "back"); //
int currentYear =Integer.parseInt(yearStr.trim());
int currentMonth = Integer.parseInt(monthStr.trim())-1;
int currentDay = Integer.parseInt(dayStr.trim());
int currentHour = Integer.parseInt(hourStr.trim());
int currentMinute = Integer.parseInt(minuteStr.trim());
/*
int currentYear = Integer.valueOf(yearStr.trim()).intValue();
int currentMonth = Integer.valueOf(monthStr.trim()).intValue() - 1;
int currentDay = Integer.valueOf(dayStr.trim()).intValue();
int currentHour = Integer.valueOf(hourStr.trim()).intValue();
int currentMinute = Integer.valueOf(minuteStr.trim()).intValue();
*/
calendar.set(currentYear, currentMonth, currentDay, currentHour, currentMinute);
return calendar;
}