Search in sources :

Example 1 with UserInfoFragment

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);
}
Also used : FragmentTransaction(android.support.v4.app.FragmentTransaction) UserInfoFragment(org.qii.weiciyuan.ui.userinfo.UserInfoFragment)

Aggregations

FragmentTransaction (android.support.v4.app.FragmentTransaction)1 UserInfoFragment (org.qii.weiciyuan.ui.userinfo.UserInfoFragment)1