use of org.qii.weiciyuan.ui.userinfo.UserInfoFragment in project weiciyuan by qii.
the class LeftMenuFragment method showProfilePageImp.
private void showProfilePageImp() {
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.hide(rightFragments.get(HOME_INDEX));
ft.hide(rightFragments.get(MENTIONS_INDEX));
ft.hide(rightFragments.get(COMMENTS_INDEX));
ft.hide(rightFragments.get(SEARCH_INDEX));
ft.hide(rightFragments.get(DM_INDEX));
ft.hide(rightFragments.get(FAV_INDEX));
UserInfoFragment fragment = (UserInfoFragment) rightFragments.get(PROFILE_INDEX);
ft.show(fragment);
ft.commit();
((UserInfoFragment) fragment).buildActionBarAndViewPagerTitles();
AnimationUtility.translateFragmentY(fragment, -400, 0, fragment);
}
Aggregations