Search in sources :

Example 1 with MyFavListFragment

use of org.qii.weiciyuan.ui.userinfo.MyFavListFragment in project weiciyuan by qii.

the class LeftMenuFragment method showFavPageImp.

private void showFavPageImp() {
    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(PROFILE_INDEX));
    Fragment fragment = rightFragments.get(FAV_INDEX);
    ft.show(fragment);
    ft.commit();
    ((MyFavListFragment) fragment).buildActionBarAndViewPagerTitles();
}
Also used : FragmentTransaction(android.support.v4.app.FragmentTransaction) MyFavListFragment(org.qii.weiciyuan.ui.userinfo.MyFavListFragment) MyFavListFragment(org.qii.weiciyuan.ui.userinfo.MyFavListFragment) SearchMainParentFragment(org.qii.weiciyuan.ui.search.SearchMainParentFragment) UserInfoFragment(org.qii.weiciyuan.ui.userinfo.UserInfoFragment) Fragment(android.support.v4.app.Fragment) AbstractAppFragment(org.qii.weiciyuan.ui.interfaces.AbstractAppFragment) FriendsTimeLineFragment(org.qii.weiciyuan.ui.maintimeline.FriendsTimeLineFragment) DMUserListFragment(org.qii.weiciyuan.ui.dm.DMUserListFragment)

Aggregations

Fragment (android.support.v4.app.Fragment)1 FragmentTransaction (android.support.v4.app.FragmentTransaction)1 DMUserListFragment (org.qii.weiciyuan.ui.dm.DMUserListFragment)1 AbstractAppFragment (org.qii.weiciyuan.ui.interfaces.AbstractAppFragment)1 FriendsTimeLineFragment (org.qii.weiciyuan.ui.maintimeline.FriendsTimeLineFragment)1 SearchMainParentFragment (org.qii.weiciyuan.ui.search.SearchMainParentFragment)1 MyFavListFragment (org.qii.weiciyuan.ui.userinfo.MyFavListFragment)1 UserInfoFragment (org.qii.weiciyuan.ui.userinfo.UserInfoFragment)1