예제 #1
0
  private void loadStatuses(final long requestPage) {
    if (isLoadingMore) {
      return;
    }

    isLoadingMore = true;
    weiboApi.statusesUser_timeline(
        user == null ? -1 : user.getId(),
        userName,
        requestPage,
        new SimpleRequestListener(this, progressDialog) {

          @Override
          public void onComplete(String response) {
            super.onComplete(response);

            showLog("status comments = " + response);

            if (requestPage == 1) {
              statuses.clear();
            }

            addStatus(gson.fromJson(response, StatusTimeLineResponse.class));
          }

          @Override
          public void onAllDone() {
            super.onAllDone();

            isLoadingMore = false;
            plv_user_info.onRefreshComplete();
          }
        });
  }
예제 #2
0
 private void setUserInfo() {
   if (user == null) {
     return;
   }
   // set data
   tv_name.setText(user.getName());
   titlebar_tv.setText(user.getName());
   imageLoader.displayImage(
       user.getAvatar_large(), new ImageViewAware(iv_avatar), ImageOptHelper.getAvatarOptions());
   tv_follows.setText("关注 " + user.getFriends_count());
   tv_fans.setText("粉丝 " + user.getFollowers_count());
   tv_sign.setText("简介:" + user.getDescription());
 }