Hee guys,
I'm currently trying to display my Google Map inside a drawerlayout thats set to the right. So when I swipe from right to left it appears. However when trying to navigate it isn't picking up all touch events.
Also i got a DrawerLayout on the left with my menu in there. Is there any way to use them apart from each other so I can open the right DrawerLayout with Maps when I need the Map?
XML:
<LinearLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<!--
Header.
-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#0099ff"
android:orientation="vertical">
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|center_vertical"
android:layout_margin="15dp"
android:text="@string/app_name"
android:textColor="#FFFFFF"
android:textSize="16sp" />
</LinearLayout>
<!--
Fragment Container and the Menu on the left.
-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false">
<com.yourguideapps.curacaoapp.customViews.InterceptingDrawerLayout
android:id="@+id/drawerLayout"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ListView xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="left"
android:layout_marginLeft="57dp"
android:background="@color/menu"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="1dp" />
<fragment
android:id="@+id/mapView"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_gravity="right"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="-64dp"/>
</com.yourguideapps.curacaoapp.customViews.InterceptingDrawerLayout>
</LinearLayout>
</LinearLayout>
No comments:
Post a Comment