本文整理汇总了Java中com.mindorks.framework.mvp.ui.about.AboutFragment类的典型用法代码示例。如果您正苦于以下问题:Java AboutFragment类的具体用法?Java AboutFragment怎么用?Java AboutFragment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AboutFragment类属于com.mindorks.framework.mvp.ui.about包,在下文中一共展示了AboutFragment类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBackPressed
import com.mindorks.framework.mvp.ui.about.AboutFragment; //导入依赖的package包/类
@Override
public void onBackPressed() {
FragmentManager fragmentManager = getSupportFragmentManager();
Fragment fragment = fragmentManager.findFragmentByTag(AboutFragment.TAG);
if (fragment == null) {
super.onBackPressed();
} else {
onFragmentDetached(AboutFragment.TAG);
}
}
示例2: showAboutFragment
import com.mindorks.framework.mvp.ui.about.AboutFragment; //导入依赖的package包/类
@Override
public void showAboutFragment() {
lockDrawer();
getSupportFragmentManager()
.beginTransaction()
.disallowAddToBackStack()
.setCustomAnimations(R.anim.slide_left, R.anim.slide_right)
.add(R.id.cl_root_view, AboutFragment.newInstance(), AboutFragment.TAG)
.commit();
}
示例3: inject
import com.mindorks.framework.mvp.ui.about.AboutFragment; //导入依赖的package包/类
void inject(AboutFragment fragment);