SwipeView类似桌面的滑动界面(15)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-06 08:44 点击:次
	   
	else //carry on as normal
{
edgePosition = mCurrentPage*mPageWidth;
}
}
}
else //backwards
{
if(mDistanceX < -DEFAULT_SWIPE_THRESHOLD)//go backwards
{
edgePosition = (int)(fingerUpPage)*mPageWidth;
}
else //return to start position
{
if(Math.round(fingerUpPage)==0)//if at beginning, correct
{
//need to correct for when user starts to scroll into
//nothing then pulls it back a bit, this becomes a
//kind of backwards scroll instead
edgePosition = (int)(fingerUpPage)*mPageWidth;
}
最新推荐更多>>>
              
          - 发表评论
 - 
				
 
- 最新评论 进入详细评论页>>
 





