Merge branch 'qinjiaming_branch'

This commit is contained in:
qinjiaming_branch 2016-08-28 20:48:27 +08:00
commit 8fb1246607
5 changed files with 13 additions and 9 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

@ -54,12 +54,12 @@ public class SplashActivity extends Activity {
@Override
public void onAnimationStart(Animation arg0) {
/*do nothing*/
}
@Override
public void onAnimationRepeat(Animation arg0) {
/*do nothing*/
}
@Override

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;
}