1
我想关闭这个膨胀的布局,当点击充气布局的按钮。如何做到这一点请帮助我。关闭膨胀的布局点击按钮
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) {
}
});
谢谢你vrry多...它的工作 –