本文整理汇总了Java中me.yokeyword.fragmentation.anim.FragmentAnimator类的典型用法代码示例。如果您正苦于以下问题:Java FragmentAnimator类的具体用法?Java FragmentAnimator怎么用?Java FragmentAnimator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FragmentAnimator类属于me.yokeyword.fragmentation.anim包,在下文中一共展示了FragmentAnimator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* Set all fragments animation.
* 设置Fragment内的全局动画
*/
public void setFragmentAnimator(FragmentAnimator fragmentAnimator) {
this.mFragmentAnimator = fragmentAnimator;
for (Fragment fragment : FragmentationMagician.getActiveFragments(getSupportFragmentManager())) {
if (fragment instanceof ISupportFragment) {
ISupportFragment iF = (ISupportFragment) fragment;
SupportFragmentDelegate delegate = iF.getSupportDelegate();
if (delegate.mAnimByActivity) {
delegate.mFragmentAnimator = fragmentAnimator.copy();
if (delegate.mAnimHelper != null) {
delegate.mAnimHelper.notifyChanged(delegate.mFragmentAnimator);
}
}
}
}
}
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:21,代码来源:SupportActivityDelegate.java
示例2: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
protected FragmentAnimator onCreateFragmentAnimator() {
FragmentAnimator fragmentAnimator = _mActivity.getFragmentAnimator();
fragmentAnimator.setEnter(0);
fragmentAnimator.setExit(0);
return fragmentAnimator;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:CoreBaseFragment.java
示例3: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
protected FragmentAnimator onCreateFragmentAnimator() {
// 设置横向(和安卓4.x动画相同)
return new DefaultHorizontalAnimator();
// 设置无动画
// return new DefaultNoAnimator();
// 设置自定义动画
// return new FragmentAnimator(enter,exit,popEnter,popExit);
// 默认竖向(和安卓5.0以上的动画相同)
// return super.onCreateFragmentAnimator();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:CoreBaseActivity.java
示例4: AnimatorHelper
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
public AnimatorHelper(Context context, FragmentAnimator fragmentAnimator) {
this.context = context;
this.fragmentAnimator = fragmentAnimator;
initEnterAnim();
initExitAnim();
initPopEnterAnim();
initPopExitAnim();
}
开发者ID:LonelyMushroom,项目名称:aarLibrary,代码行数:9,代码来源:AnimatorHelper.java
示例5: getFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* 获取设置的全局动画 copy
*
* @return FragmentAnimator
*/
public FragmentAnimator getFragmentAnimator() {
return new FragmentAnimator(
mFragmentAnimator.getEnter(), mFragmentAnimator.getExit(),
mFragmentAnimator.getPopEnter(), mFragmentAnimator.getPopExit()
);
}
开发者ID:LonelyMushroom,项目名称:aarLibrary,代码行数:12,代码来源:SupportActivity.java
示例6: notifyChanged
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
public void notifyChanged(FragmentAnimator fragmentAnimator) {
this.fragmentAnimator = fragmentAnimator;
initEnterAnim();
initExitAnim();
initPopEnterAnim();
initPopExitAnim();
}
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:8,代码来源:AnimatorHelper.java
示例7: getFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* 获取设置的全局动画
*
* @return FragmentAnimator
*/
public FragmentAnimator getFragmentAnimator() {
if (mSupport == null)
throw new RuntimeException("Fragment has not been attached to Activity!");
if (mFragmentAnimator == null) {
mFragmentAnimator = mSupportF.onCreateFragmentAnimator();
if (mFragmentAnimator == null) {
mFragmentAnimator = mSupport.getFragmentAnimator();
}
}
return mFragmentAnimator;
}
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:18,代码来源:SupportFragmentDelegate.java
示例8: setFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* Set the fragment animation.
*/
public void setFragmentAnimator(FragmentAnimator fragmentAnimator) {
this.mFragmentAnimator = fragmentAnimator;
if (mAnimHelper != null) {
mAnimHelper.notifyChanged(fragmentAnimator);
}
mAnimByActivity = false;
}
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:11,代码来源:SupportFragmentDelegate.java
示例9: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* 设置动画,也可以使用setFragmentAnimator()设置
*/
@Override
public FragmentAnimator onCreateFragmentAnimator() {
// 设置默认Fragment动画 默认竖向(和安卓5.0以上的动画相同)
return super.onCreateFragmentAnimator();
// 设置横向(和安卓4.x动画相同)
// return new DefaultHorizontalAnimator();
// 设置自定义动画
// return new FragmentAnimator(enter,exit,popEnter,popExit);
}
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:13,代码来源:MainActivity.java
示例10: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
protected FragmentAnimator onCreateFragmentAnimator() {
// 设置默认Fragment动画 默认竖向(和安卓5.0以上的动画相同)
return super.onCreateFragmentAnimator();
// 设置横向(和安卓4.x动画相同)
// return new DefaultHorizontalAnimator();
// 设置自定义动画
// return new FragmentAnimator(enter,exit,popEnter,popExit);
}
开发者ID:klisly,项目名称:fingerpoetry-android,代码行数:10,代码来源:HomeActivity.java
示例11: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
public FragmentAnimator onCreateFragmentAnimator() {
//fragment切换使用默认Vertical动画
return new DefaultVerticalAnimator();
}
开发者ID:Horrarndoo,项目名称:YiZhi,代码行数:6,代码来源:BaseCompatActivity.java
示例12: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
public FragmentAnimator onCreateFragmentAnimator() {
return new DefaultHorizontalAnimator();
}
开发者ID:remerber,项目名称:FastEc,代码行数:5,代码来源:DiscoverDelegate.java
示例13: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
@Override
public FragmentAnimator onCreateFragmentAnimator() {
return new DefaultHorizontalAnimator();
}
开发者ID:remerber,项目名称:FastEc,代码行数:5,代码来源:GoodsDetailDelegate.java
示例14: setFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* Set all fragments animation.
* 设置Fragment内的全局动画
*/
@Override
public void setFragmentAnimator(FragmentAnimator fragmentAnimator) {
mDelegate.setFragmentAnimator(fragmentAnimator);
}
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:9,代码来源:MySupportActivity.java
示例15: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* Set fragment animation with a higher priority than the ISupportActivity
* 设定当前Fragmemt动画,优先级比在SupportActivity里高
*/
@Override
public FragmentAnimator onCreateFragmentAnimator() {
return mDelegate.onCreateFragmentAnimator();
}
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:9,代码来源:MySupportFragment.java
示例16: setFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* 设置Fragment内的全局动画
*/
@Override
public void setFragmentAnimator(FragmentAnimator fragmentAnimator) {
mDelegate.setFragmentAnimator(fragmentAnimator);
}
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:8,代码来源:MySupportFragment.java
示例17: getFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
public FragmentAnimator getFragmentAnimator() {
return this.mDelegate.getFragmentAnimator();
}
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseActivity.java
示例18: setFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
public void setFragmentAnimator(FragmentAnimator fragmentAnimator) {
this.mDelegate.setFragmentAnimator(fragmentAnimator);
}
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseActivity.java
示例19: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
public FragmentAnimator onCreateFragmentAnimator() {
return this.mDelegate.onCreateFragmentAnimator();
}
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseActivity.java
示例20: onCreateFragmentAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator; //导入依赖的package包/类
/**
* 设定当前Fragmemt动画,优先级比在SupportActivity里高
*/
protected FragmentAnimator onCreateFragmentAnimator() {
return _mActivity.getFragmentAnimator();
}
开发者ID:LonelyMushroom,项目名称:aarLibrary,代码行数:7,代码来源:SupportFragment.java
注:本文中的me.yokeyword.fragmentation.anim.FragmentAnimator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论