Android的对话框透明对话框、透明、Android

由网友(别给我一枪你喊疼)分享简介:我想摆脱的边界在我的对话框,使它看起来是绝对透明的,仿佛影像出现在屏幕的顶部。I want to get rid of the border in my dialog box and make it look absolutly transparent, as if the image is on the top o...

我想摆脱的边界在我的对话框,使它看起来是绝对透明的,仿佛影像出现在屏幕的顶部。

I want to get rid of the border in my dialog box and make it look absolutly transparent, as if the image is on the top of screen.

我的对话XML是 -

My dialog xml is -

<?xml version="1.0" encoding="utf-8"?>

<ImageView android:id="@+id/ImageView01"
    android:layout_width="wrap_content" android:layout_height="wrap_content"
    android:layout_centerHorizontal="true" android:visibility="invisible"/>

推荐答案

尝试下面code

Dialog mDialog = new Dialog(mContext, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
阅读全文

相关推荐

最新文章