本文整理匯總了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);