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.
Just to add the new View might be Different Height.
You can use FrameLayout
or RelativeLayout
. But I recommend RelativeLayout
as it is more flexible and easier to use.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.