本文整理汇总了Java中org.zirco.utils.AnimationManager类的典型用法代码示例。如果您正苦于以下问题:Java AnimationManager类的具体用法?Java AnimationManager怎么用?Java AnimationManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AnimationManager类属于org.zirco.utils包,在下文中一共展示了AnimationManager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setFindBarVisibility
import org.zirco.utils.AnimationManager; //导入依赖的package包/类
private void setFindBarVisibility(boolean visible) {
if (visible) {
mFindBar.startAnimation(AnimationManager.getInstance().getTopBarShowAnimation());
mFindBar.setVisibility(View.VISIBLE);
mFindDialogVisible = true;
} else {
mFindBar.startAnimation(AnimationManager.getInstance().getTopBarHideAnimation());
mFindBar.setVisibility(View.GONE);
mFindDialogVisible = false;
}
}
示例2: showPreviousTab
import org.zirco.utils.AnimationManager; //导入依赖的package包/类
/**
* Show the previous tab, if any.
*/
private void showPreviousTab(boolean resetToolbarsRunnable) {
if (mViewFlipper.getChildCount() > 1) {
if (mFindDialogVisible) {
closeFindDialog();
}
mCurrentWebView.doOnPause();
mViewFlipper.setInAnimation(AnimationManager.getInstance().getInFromLeftAnimation());
mViewFlipper.setOutAnimation(AnimationManager.getInstance().getOutToRightAnimation());
mViewFlipper.showPrevious();
mCurrentWebView = mWebViews.get(mViewFlipper.getDisplayedChild());
mCurrentWebView.doOnResume();
if (resetToolbarsRunnable) {
startToolbarsHideRunnable();
}
showToastOnTabSwitch();
updatePreviousNextTabViewsVisibility();
updateUI();
}
}
示例3: showNextTab
import org.zirco.utils.AnimationManager; //导入依赖的package包/类
/**
* Show the next tab, if any.
*/
private void showNextTab(boolean resetToolbarsRunnable) {
if (mViewFlipper.getChildCount() > 1) {
if (mFindDialogVisible) {
closeFindDialog();
}
mCurrentWebView.doOnPause();
mViewFlipper.setInAnimation(AnimationManager.getInstance().getInFromRightAnimation());
mViewFlipper.setOutAnimation(AnimationManager.getInstance().getOutToLeftAnimation());
mViewFlipper.showNext();
mCurrentWebView = mWebViews.get(mViewFlipper.getDisplayedChild());
mCurrentWebView.doOnResume();
if (resetToolbarsRunnable) {
startToolbarsHideRunnable();
}
showToastOnTabSwitch();
updatePreviousNextTabViewsVisibility();
updateUI();
}
}