private void setView() { try { relayout_fate.startAnimation(AnimationUtils.loadAnimation(context, R.anim.fate_alpha)); ImageLoadUtils.imageLoader.displayImage( person.getUrl(), img_fate_icon, ImageLoadUtils.options); // tv_fate_location.setText(person.getCity()); tv_fate_location.setText(Conf.city); tv_fate_name.setText(person.getNick()); tv_fate_age.setText(person.getAge() + StringUtils.getResourse(R.string.str_sui)); tv_fate_likenum.setText( person.getGreeted_nums() + StringUtils.getResourse(R.string.str_fate_likenum)); if (person.getHeight().trim().equals("")) tv_fate_height.setText(""); else tv_fate_height.setText(person.getHeight() + "cm"); tv_fate_picnum.setText( person.getPhoto_nums() + StringUtils.getResourse(R.string.str_iconuntil)); } catch (Exception e) { // TODO: handle exception } }
@Override protected void initWidget() { // TODO Auto-generated method stub tv_title.setText(StringUtils.getResourse(R.string.str_talk_helper)); layout_back.setVisibility(View.VISIBLE); initView(); if (!NetworkUtils.checkNet(context)) { img_loading_error.setVisibility(View.VISIBLE); } else { img_loading_error.setVisibility(View.GONE); waitDialog(); getHttpData(); } pullScrollView.setheaderViewGone(); pullScrollView.setfooterViewGone(); pullScrollView.setOnPullListener(this); pullScrollView.setVisibility(View.VISIBLE); }