开发者

Remove the white border of Custom Dialog which is an activity

开发者 https://www.devze.com 2023-04-12 23:37 出处:网络
I have a custom dialog, which has a label , a text boxand 2 buttons. So i decided to build up a Activity which will look like a dialog, and in then Manifest file, i mentioned the theme as Dialog.

I have a custom dialog, which has a label , a text box and 2 buttons.

So i decided to build up a Activity which will look like a dialog, and in then Manifest file, i mentioned the theme as Dialog.

So now I get a custom dialog working fine.

But, i want to remove the white boder of this custom Dialog.

I read the other posts,which开发者_Python百科 say we can remove the border using

<item name="android:windowBackground">@color/transparent_white</item>

however in my case it is an activity, which looks like a dialog. Please help


Please apply below code instead of your one

<item name="android:windowBackground">@android:color/transparent</item>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号