I have an activity where I am populating a dialog, In my dialog I have to create a transparent circle which highlight the background text. My problem is when dialog appears it makes the whole background as dim black , so my transparent circle also show with dim background. I am unable to highlight the circle without dim black background. Please suggest.
Asked
Active
Viewed 227 times
2

sharma.mahesh369
- 985
- 11
- 28
-
You can give your Dialog window a custom layout. It's well explained on the offical site. – Phantômaxx Mar 21 '17 at 07:35
-
My dialog contains custom layout , but circle transparency includes dim black background. Can u suggest me any link – sharma.mahesh369 Mar 21 '17 at 07:43
-
Simply cut out a circle in the background image. You can use PorterDuff to do that. – Phantômaxx Mar 21 '17 at 08:08
-
using PorterDuff.Mode making my circle totaly black. I tried using DialogFragment also but no help. – sharma.mahesh369 Mar 21 '17 at 11:58
-
`using PorterDuff.Mode making my circle totaly black` Then you are not using it correctly. – Phantômaxx Mar 21 '17 at 12:15
-
[Check out](https://stackoverflow.com/questions/19947835/android-canvas-draw-transparent-circle-on-image?rq=1) It has a lot of answers. – Ayushi Khandelwal Jul 27 '22 at 06:20