0

I have Google map in fragment and i would like to add a View over it in the bottom of the map, The view will change if the user presses Order and that will animate current Bottom View ( it will go down ) and new View will Come from Bottom to "replace it". Now i taught to do this with RelativeLayout to make it over. But is there any other way (better maybe) to do this?

I have read that it might be done with FrameLayout, but i am not sure, on how to do this correctly.Example

Just to add the new View might be Different Height.

MePo
  • 1,044
  • 2
  • 23
  • 48

1 Answers1

0

You can use FrameLayout or RelativeLayout. But I recommend RelativeLayout as it is more flexible and easier to use.

Nabin Bhandari
  • 15,949
  • 6
  • 45
  • 59
  • What are the downsides of FrameLayout? Since i haven't used them before would like to know if you have experience with them – MePo Oct 05 '17 at 06:52
  • FrameLayout has less customizations but is slightly faster than RelativeLayout. You can search for other differences in Google. – Nabin Bhandari Oct 05 '17 at 06:56