本帖最后由 xj179 于 2014-01-17 19:06:31 编辑

解决方案 »

  1.   

    把那个dialog的layout背景设置成match_parent/match_parent,然后在layout里面再实现你的布局试试?
    下面的代码可能会用到 Window window = dialog == null ? null : dialog.getWindow();
    if (window != null) {
    window.setWindowAnimations(R.style.Theme_Slide);
    LayoutParams attr = window.getAttributes();
    if (attr != null) {
    attr.width = android.view.ViewGroup.LayoutParams.MATCH_PARENT;
    attr.height = android.view.ViewGroup.LayoutParams.MATCH_PARENT;
    }
    }