Search in sources :

Example 66 with Fragment

use of android.app.Fragment in project AisenWeiBo by wangdan.

the class TimelineCommentFragment method onToolbarDoubleClick.

@Override
public boolean onToolbarDoubleClick() {
    if (AisenUtils.checkTabsFragmentCanRequestData(this)) {
        Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
        if (fragment != null && fragment instanceof TimelineDetailPagerFragment) {
            ((TimelineDetailPagerFragment) fragment).swipeRefreshLayout.setRefreshing(true);
        }
        requestDataDelaySetRefreshing(AppSettings.REQUEST_DATA_DELAY);
        getRefreshView().setSelectionFromTop(0, 0);
        return true;
    }
    return false;
}
Also used : BizFragment(org.aisen.weibo.sina.ui.fragment.base.BizFragment) Fragment(android.app.Fragment) AListFragment(org.aisen.android.ui.fragment.AListFragment)

Example 67 with Fragment

use of android.app.Fragment in project AisenWeiBo by wangdan.

the class ProfileAboutFragment method onFriendshipCreated.

@Override
public void onFriendshipCreated(WeiBoUser targetUser) {
    if (mFriendship != null)
        mFriendship.getSource().setFollowing(true);
    mUser.setRecentStatusId(targetUser.getRecentStatusId());
    mGroupMemberListed = new GroupMemberListed();
    mGroupMemberListed.setLists(new ArrayList<GroupListed>());
    mGroupMemberListed.setUid(mUser.getIdstr());
    setProfile();
    setGroupList();
    // 设置Pager的菜单显示
    Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
    ((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
Also used : GroupListed(org.aisen.weibo.sina.sinasdk.bean.GroupListed) GroupMemberListed(org.aisen.weibo.sina.sinasdk.bean.GroupMemberListed) BizFragment(org.aisen.weibo.sina.ui.fragment.base.BizFragment) ABaseFragment(org.aisen.android.ui.fragment.ABaseFragment) Fragment(android.app.Fragment)

Example 68 with Fragment

use of android.app.Fragment in project AisenWeiBo by wangdan.

the class ProfileAboutFragment method onFriendshipDestoryed.

@Override
public void onFriendshipDestoryed(WeiBoUser targetUser) {
    if (mFriendship != null)
        mFriendship.getSource().setFollowing(false);
    mGroupMemberListed = null;
    mUser.setRemark("");
    setProfile();
    // 设置Pager的菜单显示
    Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
    ((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
Also used : BizFragment(org.aisen.weibo.sina.ui.fragment.base.BizFragment) ABaseFragment(org.aisen.android.ui.fragment.ABaseFragment) Fragment(android.app.Fragment)

Example 69 with Fragment

use of android.app.Fragment in project AisenWeiBo by wangdan.

the class ProfileAboutFragment method onDestoryFollower.

@Override
public void onDestoryFollower(WeiBoUser user) {
    if (mFriendship != null)
        mFriendship.getTarget().setFollowing(false);
    // 设置Pager的菜单显示
    Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
    ((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
Also used : BizFragment(org.aisen.weibo.sina.ui.fragment.base.BizFragment) ABaseFragment(org.aisen.android.ui.fragment.ABaseFragment) Fragment(android.app.Fragment)

Example 70 with Fragment

use of android.app.Fragment in project AisenWeiBo by wangdan.

the class VersionDialogFragment method launch.

public static void launch(Activity context) {
    Fragment fragment = context.getFragmentManager().findFragmentByTag("DialogFragment");
    if (fragment != null) {
        context.getFragmentManager().beginTransaction().remove(fragment).commit();
    }
    VersionDialogFragment dialogFragment = new VersionDialogFragment();
    dialogFragment.show(context.getFragmentManager(), "DialogFragment");
}
Also used : Fragment(android.app.Fragment) DialogFragment(android.app.DialogFragment)

Aggregations

Fragment (android.app.Fragment)209 FragmentTransaction (android.app.FragmentTransaction)82 FragmentManager (android.app.FragmentManager)51 DialogFragment (android.app.DialogFragment)44 Bundle (android.os.Bundle)22 Intent (android.content.Intent)13 View (android.view.View)13 PreferenceFragment (android.support.v14.preference.PreferenceFragment)12 TextView (android.widget.TextView)8 BizFragment (org.aisen.weibo.sina.ui.fragment.base.BizFragment)8 Uri (android.net.Uri)6 ABaseFragment (org.aisen.android.ui.fragment.ABaseFragment)6 Activity (android.app.Activity)5 PreferenceFragment (android.preference.PreferenceFragment)4 HashMap (java.util.HashMap)4 Map (java.util.Map)4 ViewGroup (android.view.ViewGroup)3 FrameLayout (android.widget.FrameLayout)3 ContactVcardViewerFragment (com.xabber.android.ui.fragment.ContactVcardViewerFragment)3 Method (java.lang.reflect.Method)3