LayoutInflater inflater = LayoutInflater.from(mContext); final View view = inflater.inflate(R.layout.myaccount, null); Button btnRegdit = (Button) view.findViewById(R.id.regdit_button); btnRegdit.setOnClickListener(new OnClickListener() { public void onClick(View v) { } });
温馨提示:内容为网友见解,仅供参考