public void prepareData() { this.setHasOptionsMenu(true); mImageLoader = ImageLoader.getInstance(getActivity()); mImageLoader.setDefaultBitmap(R.drawable.ic_head_default); mServiceHelper = CampusPoServiceHelper.getInstance(getActivity()); }
private void populateUi() { if (mUser != null) { if (BuildConfig.DEBUG) Log.d(TAG, "populating..."); mTextViewScreenName.setText(mUser.getUserScreenName()); mTextViewUserDescription.setText(mUser.getUserDescription()); String profileIconUrl = mUser.getProfileIconUrl(); if (null != profileIconUrl && !"".equals(profileIconUrl)) mImageLoader.loadImage(profileIconUrl, mImageViewProfileIcon); } }