开发者

Remove the white border of Custom Dialog which is an activity

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜