Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull from bottom View like Google Maps

I'm trying to make an layout like the pull up menu (see pictures) in google maps, where I can pull up and see more details about a point on the map from the bottom of the screen.

I am currently pulling a side view using a DrawerLayout,

But I would use the same layout as google maps. Here is some images: http://imgur.com/a/kuSKu#0

Also, here is the code which I used in my main activity right now:

<android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MapActivity"
    tools:ignore="MergeRootFrame">

    <fragment
        android:id="@+id/main_fragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="neocom.dealerbook.MapFragment"
        tools:layout="@layout/fragment_map" />

    <fragment android:id="@+id/side_panel"
        android:layout_width="240dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:choiceMode="singleChoice"
        android:dividerHeight="0dp"
        android:name="neocom.dealerbook.SideBarFragment"
        tools:layout="@layout/side_bar"/>

</android.support.v4.widget.DrawerLayout>

half closed

like image 721
wviana Avatar asked Mar 09 '15 21:03

wviana


People also ask

How do I get Live View on Google Maps?

The area itself needs to have robust Street View support; if it's available, you'll see a "Live View" option at the bottom of your screen when you search for walking directions. If you don't have AR view yet, find the blue dot on Google Maps and tilt your phone in the direction you're about to walk.

How do I drag and drop directions on Google Maps?

When finding directions on the desktop version of Maps, you can maneuver your route to go through or away from specific locations via drag and drop. Just click and drag any part of your direction route to move around (this only works with directions for walking, driving, or biking—it won't work with any mass transit options).

How do I know if the Google Maps crawler is working?

You’ll be able to see the crawler working in the Chrome window. We’ll make sure that any change on the Google Maps website affecting this tool's functionality will be updated in our software ASAP, so you can continue using it seamlessly and without any issue.

How do I move around in the map?

Just click and drag any part of your direction route to move around (this only works with directions for walking, driving, or biking—it won't work with any mass transit options). To get to where you're going, you can type in your destination address.


2 Answers

Now we can use Design Support Library: Bottom Sheets from Android Support Library 23.2 !

enter image description here

like image 150
LOG_TAG Avatar answered Sep 26 '22 10:09

LOG_TAG


This one did everything that I need AndroidSlidingUpPanel

like image 35
wviana Avatar answered Sep 22 '22 10:09

wviana