SwipeView类似桌面的滑动界面(8)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-06 08:44 点击:次
}
public void goBackwards()
{
smoothScrollToPage(mCurrentPage-1);
}
});
}
/**
* Return the current PageControl object
*
* @return Returns the current PageControl object
*/
public PageControl getPageControl()
{
return mPageControl;
}
/**
* Implement this listener to listen for page change events
*
* @author Jason Fry - jasonfry.co.uk
*
*/
public interface OnPageChangedListener
{
/**
* Event for when a page changes
*
* @param oldPage The page the view was on previously
* @param newPage The page the view has moved to
*/
public abstract void onPageChanged(int oldPage, int newPage);
}
/**
* Set the current OnPageChangedListsner
*
* @param onPageChangedListener The OnPageChangedListener object
*/
public void setOnPageChangedListener(OnPageChangedListener onPageChangedListener)
{
mOnPageChangedListener = onPageChangedListener;
}
/**
* Get the current OnPageChangeListsner
*
* @return The current OnPageChangedListener
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>