Пример #1
0
  View wenziView(View v, ChatBean bean) {
    ImageViews imgview1;
    if (bean.userAccount.equals(contactAccount)) {
      v = layout.inflate(R.layout.list_say_he_item, null);
      imgview1 = (ImageViews) v.findViewById(R.id.photo);
      if (num < beans.size()) {
        num = beans.size();
        warn.player();
      }
      if (Sources.CURRENTIC.contactAccount.equals("1988")) {
        imgview1.setImageResource(R.drawable.kefu);
      } else {
        imgview1.DisplayImage(Sources.CURRENTIC.contactPhoto, false);
      }
    } else {
      v = layout.inflate(R.layout.list_say_me_item, null);
      imgview1 = (ImageViews) v.findViewById(R.id.photo);
      // imgview1.DisplayImage(sp.getString("pic", ""), false);
    }

    TextView talk_time = (TextView) v.findViewById(R.id.time);
    TextView messagedetail_row_text = (TextView) v.findViewById(R.id.text);
    talk_time.setText(bean.chatTime);
    messagedetail_row_text.setText(PM.getbiaoqian2(mContext, bean.chatContent));
    return v;
  }
Пример #2
0
 @Override
 void initData() {
   topback.setVisibility(View.VISIBLE);
   toptitle.setText("订单详情");
   oiadapter = new OrderInfoAdapter(this);
   mmoif_list.setAdapter(oiadapter);
   mmoif_time.setText("下单时间:" + Sources.CURROBEAN.orderTime);
   mmoif_state.setText("状态:" + PM.getStateName(Sources.CURROBEAN.orderState));
   mmoif_bar.setText("消费码:" + Sources.CURROBEAN.orderCode);
   mmoif_total.setText("总价:¥" + Sources.CURROBEAN.zongJia);
   mmoif_sun.setText("活动价:¥" + Sources.CURROBEAN.xianJia);
   mmoif_ding.setText("定金:¥" + Sources.CURROBEAN.yingFu);
   mmoif_fu.setText("到店支付:¥" + Sources.CURROBEAN.yingShou);
 }