当前位置: 首页>>代码示例>>Java>>正文


Java SupportHelper类代码示例

本文整理汇总了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);
}
 
开发者ID:YoKeyword,项目名称:Fragmentation,代码行数:17,代码来源:ActionQueue.java

示例2: getTopFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
 * 得到位于栈顶Fragment
 */
public ISupportFragment getTopFragment() {
    return SupportHelper.getTopFragment(getSupportFragmentManager());
}
 
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:7,代码来源:MySupportActivity.java

示例3: findFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
 * 获取栈内的fragment对象
 */
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
    return SupportHelper.findFragment(getSupportFragmentManager(), fragmentClass);
}
 
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:7,代码来源:MySupportActivity.java

示例4: findChildFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
/**
 * 获取栈内的fragment对象
 */
public <T extends ISupportFragment> T findChildFragment(Class<T> fragmentClass) {
    return SupportHelper.findFragment(getChildFragmentManager(), fragmentClass);
}
 
开发者ID:GitLqr,项目名称:LQRBiliBlili,代码行数:7,代码来源:MySupportFragment.java

示例5: getTopFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopFragment() {
  return SupportHelper.getTopFragment(this.getSupportFragmentManager());
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseActivity.java

示例6: findFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
  return SupportHelper.findFragment(this.getSupportFragmentManager(), fragmentClass);
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseActivity.java

示例7: getTopFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopFragment() {
  return SupportHelper.getTopFragment(this.getFragmentManager());
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseFragment.java

示例8: getTopChildFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getTopChildFragment() {
  return SupportHelper.getTopFragment(this.getChildFragmentManager());
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseFragment.java

示例9: getPreFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public ISupportFragment getPreFragment() {
  return SupportHelper.getPreFragment(this);
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseFragment.java

示例10: findFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findFragment(Class<T> fragmentClass) {
  return SupportHelper.findFragment(this.getFragmentManager(), fragmentClass);
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseFragment.java

示例11: findChildFragment

import me.yokeyword.fragmentation.SupportHelper; //导入依赖的package包/类
public <T extends ISupportFragment> T findChildFragment(Class<T> fragmentClass) {
  return SupportHelper.findFragment(this.getChildFragmentManager(), fragmentClass);
}
 
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:4,代码来源:BaseFragment.java


注:本文中的me.yokeyword.fragmentation.SupportHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。