コード例 #1
0
 public ZhuoInfoListAdapter(Activity context, ArrayList<ZhuoInfoVO> list) {
   this.mContext = context;
   this.mList = list;
   this.inflater = LayoutInflater.from(context);
   this.mConnHelper = ZhuoConnHelper.getInstance(context);
   this.width = DeviceInfoUtil.getDeviceCsw(context);
   this.times = DeviceInfoUtil.getDeviceCsd(context);
   this.phw = new PopupWindows(context);
   this.myid = ResHelper.getInstance(context).getUserid();
 }
コード例 #2
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_msg_cmt);
   contentEditText = (EditText) findViewById(R.id.editTextContent);
   mConnHelper = ZhuoConnHelper.getInstance(getApplicationContext());
   pwh = new PopupWindows(ResCommentActivity.this);
   Intent i = getIntent();
   msgid = i.getStringExtra("msgid");
   toId = i.getStringExtra("toId");
   toUserid = i.getStringExtra("toUserid");
   toUserName = i.getStringExtra("toUserName");
   if (toId != null && toId.equals("-1")) {
     contentEditText.setHint("回复" + toUserName);
   }
   initClick();
 }