コード例 #1
0
  public static ABaseFragment newInstance(WeiBoUser searchResult) {
    UserProfileFragment fragment = new UserProfileFragment();

    Bundle args = new Bundle();
    args.putSerializable("newUser", searchResult);
    fragment.setArguments(args);

    return fragment;
  }
コード例 #2
0
  public static ABaseFragment newInstance() {
    UserProfileFragment fragment = new UserProfileFragment();

    Bundle args = new Bundle();
    args.putSerializable("user", AppContext.getUser());
    fragment.setArguments(args);

    return fragment;
  }