本文整理汇总了Java中me.yokeyword.fragmentation.SupportHelper类的典型用法代码示例。如果您正苦于以下问题:Java SupportHelper类的具体用法?Java SupportHelper怎么用?Java SupportHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SupportHelper类属于me.yokeyword.fragmentation包,在下文中一共展示了SupportHelper类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: executeNextAction
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
private void executeNextAction(Action action) {
if (action.action == Action.ACTION_POP) {
ISupportFragment top = SupportHelper.getTopFragment(action.fragmentManager);
if (top == null) return;
long duration = top.getSupportDelegate().getExitAnimDuration();
action.duration = duration + Action.BUFFER_TIME;
}
mMainHandler.postDelayed(new Runnable() {
@Override
public void run() {
mQueue.poll();
handleAction();
}
}, action.duration);
}
示例2: getTopFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
* 得到位于栈顶Fragment
*/
public ISupportFragment getTopFragment() {
return SupportHelper.getTopFragment(getSupportFragmentManager());
}
示例3: findFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
* 获取栈内的fragment对象
*/
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
return SupportHelper.findFragment(getSupportFragmentManager(), fragmentClass);
}
示例4: findChildFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
* 获取栈内的fragment对象
*/
public <T extends ISupportFragment> T findChildFragment(Class<T> fragmentClass) {
return SupportHelper.findFragment(getChildFragmentManager(), fragmentClass);
}
示例5: getTopFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopFragment() {
return SupportHelper.getTopFragment(this.getSupportFragmentManager());
}
示例6: findFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
return SupportHelper.findFragment(this.getSupportFragmentManager(), fragmentClass);
}
示例7: getTopFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopFragment() {
return SupportHelper.getTopFragment(this.getFragmentManager());
}
示例8: getTopChildFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopChildFragment() {
return SupportHelper.getTopFragment(this.getChildFragmentManager());
}
示例9: getPreFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getPreFragment() {
return SupportHelper.getPreFragment(this);
}
示例10: findFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
return SupportHelper.findFragment(this.getFragmentManager(), fragmentClass);
}
示例11: findChildFragment
import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findChildFragment(Class<T> fragmentClass) {
return SupportHelper.findFragment(this.getChildFragmentManager(), fragmentClass);
}