Hi I am building a map app and trying to have it so when you hit click on a maker it opens the sliding pane. It works just the way i want but when the pane is closed you can still see a bit of it overhanging. I want to hide that off the screen so all you see is the map fragment.
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sliding_layout"
android:layout_width="fill_parent"
android:layout_height="match_parent" >
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
class="com.google.android.gms.maps.SupportMapFragment" />
<fragment
android:id="@+id/photo"
android:name="com.example.mapapp.SliderFragment"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_margin="0dp" />
</android.support.v4.widget.SlidingPaneLayout>
see the below image