Reputation: 1695
Im trying to get the same result as new google maps, when you "tap" on any "marker" you get a little layout in bottom of the screen, all the info about the srteet view and other details shown there, when you hold and move your finger to top of the screen the layout moves and c over all screen or half of the screen. i was thinking use slidingDrawer but seems google depreceate this method on api 17. so how i can achieve this?
Im attaching the image of example:
Upvotes: 7
Views: 4073
Reputation: 20599
Now from with Android Support Library 23.2 we can use Design Support Library: Bottom Sheets
Upvotes: 3
Reputation: 74046
you could look into using this SlidingUpPanel which appears to be exactly what you are looking for
Upvotes: 4
Reputation: 5704
Something that might be worth looking into is the answer to this question.
More specifically the answer that links here.
Basically the idea is that They realized that the sliding drawer left some things to be desired and they created a custom component with similar functionality. This will give you more freedom and a way around using deprecated classes. Let me know in comments if there's anything else that would be helpful to know.
Happy coding!
Upvotes: 0