0

我的应用程序中有 5 个选项卡。但是在当前片段中打开对话框时,我无法在选项卡之间移动,因为对话框显示在选项卡上。如果有人有解决方案,请提供帮助。谢谢..我的对话框代码如下:

public static final void showDialog(Context context, String title,
            String message) {
        final Dialog dialog = new Dialog(context, R.style.MyDialogTheme);
        dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

        dialog.setContentView(R.layout.dialog_description);

        TextView text_Title = (TextView) dialog
                .findViewById(R.id.text_desc_title1);
        TextView text_Desc = (TextView) dialog
                .findViewById(R.id.text_desc_main1);
        Button btn_delete = (Button) dialog
                .findViewById(R.id.button_delete_dialog);
        text_Title.setText(title);
        text_Desc.setMovementMethod(new ScrollingMovementMethod());
        text_Desc.setText(Html.fromHtml(message));

        btn_delete.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                dialog.dismiss();
            }
        });

        dialog.show();

    }
4

0 回答 0