单击膨胀布局的按钮时,我想关闭此膨胀布局。如何实现这一点请帮助我。
li = LayoutInflater.from(VMAdjustFrame.this);
promptsView = li.inflate(R.layout.wishlist_save_prompt, null);
alertDialogBuilder = new AlertDialog.Builder(VMAdjustFrame.this);
alertDialogBuilder.setView(promptsView);
alertDialogBuilder.show();
TextView textView = (TextView)promptsView.findViewById(R.id.textView1);
textView.setText(context.getString(R.string.share_photo));
单击电子邮件按钮时调用侦听器
Button emailButton = (Button)promptsView.findViewById(R.id.phoneButton);
emailButton.setText(context.getString(R.string.share_photo_email));
emailButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});