コード例 #1
0
  @Override
  public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onActivityCreated(savedInstanceState);
    mLiveChatManager = LiveChatManager.getInstance();
    mLiveChatManager.RegisterMagicIconListener(this);
    mMagicIconConfig = mLiveChatManager.GetMagicIconConfigItem();

    if (mMagicIconConfig == null) {
      // 本地无配置,调用接口获取或更新
      mProgress.setVisibility(View.VISIBLE);
      mLiveChatManager.GetMagicIconConfig();
    } else {
      updateView();
    }
  }
コード例 #2
0
  @Override
  public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onActivityCreated(savedInstanceState);
    albumId = getActivity().getIntent().getExtras().getString(AlbumDetailActivity.INPUT_ALBUM_ID);
    albumName =
        getActivity().getIntent().getExtras().getString(AlbumDetailActivity.INPUT_ALBUM_NAME);

    mAlbumItemList = new ArrayList<AlbumPhoto>();
    mAlbumPhotoList = new ArrayList<AlbumPhotoItem>();
    unReviewItems = new ArrayList<AlbumPhotoItem>();
    pastItems = new ArrayList<AlbumPhotoItem>();
    editItems = new ArrayList<AlbumPhotoItem>();
    rejectItems = new ArrayList<AlbumPhotoItem>();

    mAdapter = new AlbumPhotoAdapter(mContext, albumId, albumName, mAlbumItemList, mAlbumPhotoList);
    mAdapter.setIsIniting(true);
    sgvTheme.setAdapter(mAdapter);

    QueryAlbumItem(); // 查询相册item
  }