ozodrukh / CircularReveal

Lollipop ViewAnimationUtils.createCircularReveal for everyone 4.0+
MIT License
2.43k stars 391 forks source link

Using this effect with a AlertDialog gives a white background cannot be changed. #18

Closed notsatyarth closed 9 years ago

notsatyarth commented 9 years ago

I cannot seem to change the white background border which is coming in the alertdialog.Am I doing something wrong here?The clipped view is the grey/black area.I need to make the white background is visible.Is that possible? screenshot_2015-03-06-03-53-03

ozodrukh commented 9 years ago

share your code in the gist, than i will try to help you

notsatyarth commented 9 years ago

The code is added here and I am also facing an issue in lollipop builds.The circular reveal fucntion seems to pick a center which is off the center specified.ie:the animation origin is not from the specified center.

Android-s14 commented 9 years ago

I have found myself in a similar situation, striving to remove the white background of an underlying view of AlertDialog. I couldn't make it work with AlertDialog and found several opinions that it's impossible, but as a workaround (that I hope you can use as well) I migrated my AlertDialog to android.app.Dialog (which leaves almost all your previous code intact except for the fact there is no builder for Dialog) and used a function to iteratively set transparent background to all parents of the dialog's view. What seems to not work with AlertDialog, works nicely with Dialog. My dialog creation and xml: gist

notsatyarth commented 9 years ago

Could you find a solution for this?