0

I have a menu button on my Android App (which is located towards the bottom centre of the screen), which when tapped, brings up a dialog box.

I wanted to implement an animation, whereby the dialog box quickly grows in size and upwards from the bottom of the screen (seemingly from the menu button itself) to appear in middle of the screen at full size.

I followed the top answer in the Stack Overflow question Show DialogFragment with animation growing from a point, which does seem to work to an extent. The answer is the one with 193 up votes. Albeit, the dialog box grows down from the top of the screen instead of the bottom. I'm sure it's not a big fix, but I can't for the life of me seem to figure out how to invert this animation so that it appears from the bottom instead. Maybe its my tired eyes!

Many thanks!

As said in the main body of my problem, I took the code and implemented it. It appears to work, but in reverse; appearing from the top of the screen and not the bottom where I'd like it to appear. I tried playing around with the configuration in the animation files to change the X and Y variables, but this didn't seem to have an effect. Perhaps there is something I have to do to them to get the right reaction.

Velociholmes
  • 25
  • 1
  • 7
  • Not getting any answers, so I think it might be the way I've structured my question. Either way, I am going to attempt to work out a fix and will post my progress on here in the hope someone will see it and give me a gentle nudge in the right direction! In the meantime, if anybody can help it will be massively appreciated! – Velociholmes Mar 27 '23 at 20:41

0 Answers0