github上的 ImmersionBar如何设置 AlertDialog 背景透明 ?

我用的是 GitHub上的一个界面插件:
https://github.com/gyf-dev/ImmersionBar
我现在的效果如下图所示:我想把这个背景弄成透明的(图片附最后边)
我在styles.xml中 parent="Theme.AppCompat.Dialog"


使得图中 dialog左右两边(即图中 1 2处)透明了

现在就是中间部分不能透明,我试过以下方法 都不管用:
一:dialog.xml中

RelativeLayout节点设置
    android:id="@+id/rl_Relatvelayout"
    android:background="#000000"
    android:alpha="0"  //按钮等不可见了!!
private RelativeLayout g_rlRelatvelayout;
g_rlRelatvelayout = dialogView.findViewById(R.id.rl_Relatvelayout);
g_rlRelatvelayout.setBackgroundColor(Color.TRANSPARENT);

二:我想设置透明度动画 :
g_DialogWindow.setWindowAnimations(R.style.BottomAnimation);

我没找到设置 setFillAfter(true);的地方
重要的是:这个透明也会将EditText ImageButton 也变成透明的了!!

其他的方法我也是个不少,有的没有效果就过去了,也想不起来了,累死了

img

我这里怎么没有 supportAlertDialog 方法呢?新加的?

在使用 ImmersionBar 库的情况下,可以使用以下方法设置 AlertDialog 背景透明:

调用 ImmersionBar 的 supportAlertDialog 方法,将 AlertDialog 传入该方法中,即可在 AlertDialog 的窗口中设置背景透明度。
例如:

AlertDialog alertDialog = new AlertDialog.Builder(this)
.setTitle("标题")
.setMessage("消息内容")
.setPositiveButton("确定", null)
.setNegativeButton("取消", null)
.create();
ImmersionBar.with(this).supportAlertDialog(alertDialog).init();

在 AlertDialog 的布局文件中,使用 android:background 属性设置背景透明度。
例如:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:background="#33000000"
 android:orientation="vertical">
<!-- 其他布局元素 -->
</LinearLayout>

在这里,#33000000 表示设置背景颜色为半透明黑色。

给背景添加一个透明色呢?或者获取背景修改一下透明度