@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_circle_info); cid = getIntent().getStringExtra("cid"); findViewById(); setListener(); modle = DBUtils.getCircleDetail(cid); imageLoader = CLXApplication.getImageLoader(); options = CLXApplication.getOptions(); if (!Utils.isNetworkAvailable()) { Utils.showToast("请检查网络"); return; } if (modle != null) { isSelf(modle.getCreator()); setvalue( modle.getName(), modle.getLogo(), modle.getDescription(), modle.getMembersTotal() + "", modle.getMembersVerified() + ""); } else { pd = DialogUtil.getWaitDialog(this, "请稍后"); pd.show(); } getServerData(); }
/** 接口回调 */ @Override public void getIdetail(CircleIdetailModle modle) { if (pd != null) { pd.dismiss(); } if (modle == null) { return; } isSelf(modle.getCreator()); setvalue( modle.getName(), modle.getLogo(), modle.getDescription(), modle.getMembersTotal() + "", modle.getMembersVerified() + ""); }