Search in sources :

Example 1 with FragmentArgs

use of org.aisen.android.ui.activity.container.FragmentArgs in project AisenWeiBo by wangdan.

the class SearchFragment method launch.

public static void launch(Activity from, String q) {
    FragmentArgs args = new FragmentArgs();
    args.add("q", q);
    SinaCommonActivity.launch(from, SearchFragment.class, args);
    from.overridePendingTransition(-1, -1);
}
Also used : FragmentArgs(org.aisen.android.ui.activity.container.FragmentArgs)

Example 2 with FragmentArgs

use of org.aisen.android.ui.activity.container.FragmentArgs in project AisenWeiBo by wangdan.

the class AboutWebFragment method launchOpensource.

public static void launchOpensource(Activity from) {
    FragmentArgs args = new FragmentArgs();
    args.add("type", 2);
    SinaCommonActivity.launch(from, AboutWebFragment.class, args);
}
Also used : FragmentArgs(org.aisen.android.ui.activity.container.FragmentArgs)

Example 3 with FragmentArgs

use of org.aisen.android.ui.activity.container.FragmentArgs in project AisenWeiBo by wangdan.

the class PicturePickFragment method launch.

public static void launch(ABaseFragment from, int maxSize, String[] pics, int requestCode) {
    FragmentArgs args = new FragmentArgs();
    args.add("maxSize", maxSize + "");
    args.add("pics", pics);
    SinaCommonActivity.launchForResult(from, PicturePickFragment.class, args, requestCode);
}
Also used : FragmentArgs(org.aisen.android.ui.activity.container.FragmentArgs)

Example 4 with FragmentArgs

use of org.aisen.android.ui.activity.container.FragmentArgs in project AisenWeiBo by wangdan.

the class FriendshipPagerFragment method launch.

/**
     * 用户关系
     *
     * @param from
     * @param user
     * @param type 1:粉丝 0:关注 2:互粉
     */
public static void launch(Activity from, WeiBoUser user, int type) {
    FragmentArgs args = new FragmentArgs();
    args.add("user", user);
    args.add(SET_INDEX, type);
    SinaCommonActivity.launch(from, FriendshipPagerFragment.class, args);
}
Also used : FragmentArgs(org.aisen.android.ui.activity.container.FragmentArgs)

Example 5 with FragmentArgs

use of org.aisen.android.ui.activity.container.FragmentArgs in project AisenWeiBo by wangdan.

the class AboutWebFragment method launchAbout.

public static void launchAbout(Activity from) {
    FragmentArgs args = new FragmentArgs();
    args.add("type", 0);
    //		SinaCommonActivity.launch(from, AboutWebFragment.class, args);
    Intent intent = new Intent(from, BrowserActivity.class);
    intent.setAction(Intent.ACTION_VIEW);
    intent.putExtra("url", SettingUtility.getStringSetting("about_url"));
    from.startActivity(intent);
}
Also used : Intent(android.content.Intent) FragmentArgs(org.aisen.android.ui.activity.container.FragmentArgs)

Aggregations

FragmentArgs (org.aisen.android.ui.activity.container.FragmentArgs)11 Fragment (android.app.Fragment)1 Intent (android.content.Intent)1 Method (java.lang.reflect.Method)1 TabItem (org.aisen.android.support.bean.TabItem)1 ABaseFragment (org.aisen.android.ui.fragment.ABaseFragment)1 BizFragment (org.aisen.weibo.sina.ui.fragment.base.BizFragment)1