在对话框打开时在标签之间移动

时间:2013-09-05 09:33:39

标签: android dialog

我的应用程序中有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();

    }

0 个答案:

没有答案