当我点击按钮DialogFragment出现在底部表中时,我处于底部状态。但是,当我点击此DialogFragment中的按钮时,我不会交换它们。即我想在DialogFragments之间进行转换。如何解决这个问题?
这是我在底图中的代码:
public void imageButton(){
final Dialog dialog = new Dialog(getContext());
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // before
dialog.setContentView(R.layout.dialog_metka_aims);
dialog.setCancelable(true);
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
lp.copyFrom(dialog.getWindow().getAttributes());
lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
dialog.show();
dialog.getWindow().setAttributes(lp);
}
}