该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
SendAdvicePopu extends PopuWindow{
private Button sendButton = null;
private EditText adviceEditText = null;
public class SendAdvicePopu extends PopupWindow {
private Button sendButton = null;
private EditText adviceEditText = null;
public SendAdvicePopu(Activity context,OnClickListener itemsOnClick) {
super(context);
//加载发送界面
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View sendView = inflater.inflate(R.layout.send_advice_popuwindow, null);
this.setContentView(sendView);
this.setWindowLayoutMode(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
this.setAnimationStyle(android.R.style.Animation);
ColorDrawable dw = new ColorDrawable(0x76333571);
this.setBackgroundDrawable(dw);
//事件监听
adviceEditText = (EditText)sendView.findViewById(R.id.advice_txt);
Intent intent = new Intent();
intent.putExtra("123", adviceEditText.getText().toString());
intent.setClass(context, MainActivity.class);
sendButton = (Button)sendView.findViewById(R.id.sen_btn);
sendButton.setOnClickListener(itemsOnClick);
this.setFocusable(true);
this.update();
this.setOutsideTouchable(true);
this.setTouchable(true);
}
}
}