膨張したレイアウトのボタンをクリックすると、この膨張したレイアウトを閉じたいです。これを達成する方法は私を助けてください。
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) {
}
});