Example #1
0
  private void initView() {

    //        aq = ShopApplication.getAQuery();
    aq = new AQuery(this);

    curUser = BmobUser.getCurrentUser(this, User.class);
    if (curUser == null) return;

    aq.id(R.id.et_mineinfo_username).text(curUser.getNickname());
    aq.id(R.id.et_mineinfo_sex).text(curUser.getSex());
    aq.id(R.id.et_mineinfo_stuid).text(curUser.getStuID());
    aq.id(R.id.et_mineinfo_school).text(curUser.getSchool());
    aq.id(R.id.et_mineinfo_cademy).text(curUser.getCademy());
    aq.id(R.id.et_mineinfo_class).text(curUser.getClassName());

    if (!curUser.getClassName().equals(""))
      aq.id(R.id.et_mineinfo_time).text("20" + curUser.getClassName().substring(0, 2));
    aq.id(R.id.et_mineinfo_dorpart).text(curUser.getDorPart());
    aq.id(R.id.et_mineinfo_dornum).text(curUser.getDorNum());
    aq.id(R.id.et_mineinfo_phone).text(curUser.getPhone());
    aq.id(R.id.et_mineinfo_qq).text(curUser.getQQ());

    if (null != curUser.getPicUser())
      aq.id(R.id.img_mine_info_icon).image(curUser.getPicUser().getFileUrl(this));
    else aq.id(R.id.img_mine_info_icon).image(R.drawable.ic_xiaocai_weixin);

    aq.id(R.id.rl_mine_info_icon).clicked(this);
    aq.id(R.id.rl_mine_info_username).clicked(this);
    aq.id(R.id.rl_mine_info_sex).clicked(this);
    aq.id(R.id.rl_mine_info_stuid).clicked(this);
    aq.id(R.id.rl_mine_info_school).clicked(this);
    aq.id(R.id.rl_mine_info_cademy).clicked(this);
    aq.id(R.id.rl_mine_info_dorpart).clicked(this);
    aq.id(R.id.rl_mine_info_dornum).clicked(this);
    aq.id(R.id.rl_mine_info_phone).clicked(this);
    aq.id(R.id.rl_mine_info_qq).clicked(this);
  }
Example #2
0
 private void refreshUserIcon() {
   aq.id(R.id.img_mine_info_icon).image(curUser.getPicUser().getUrl());
 }