Remove black background on custom dialog

前端 未结 13 2267
清歌不尽
清歌不尽 2021-01-30 20:54

I want to remove the black background on custom dialog as shown in the picture. I\'m sure the black background was from the dialog, not from app\'s background.

13条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 21:18

    Remove the background opacity color, you just need to set the DimAmount

    dialog.getWindow().setDimAmount(float amount);
    

    The new dim amount, from 0 for no dim to 1 for full dim.

提交回复
热议问题