title: How to show SlidingPaneLayout at right side?
body: <p>Hi I am a beginner for android and in my app I have to show SlidingPaneLayout at the right side but using my below code it's coming from left side.</p>
  
  <p>Please help me.</p>
  
  <p>How can I make it be at right side?</p>
  
  <p>And second my requirement is my SlidingPaneLayout must be overlapped on Action bar but using my below xml code SlidingPaneLayout showing like my below image </p>
  
  <p>please suggest me how can resolve this two problem </p>
  
  <h2>toolbar_layout:-</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/ColorPrimary"
      android:elevation="4dp"
      &gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <h2>activity_sliding:-</h2>
  
  <pre><code>&lt;android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/SlidingPanel"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="240dp"
          android:layout_height="match_parent"
          android:layout_gravity="right"&gt;
  
          &lt;ListView
              android:id="@+id/MenuList"
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
          &lt;/ListView&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="right"
          android:background="#101010"
          android:orientation="vertical" &gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@drawable/android_robot" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.SlidingPaneLayout&gt;
  </code></pre>
  
  <h2>main_layout:-</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;include
          android:id="@+id/tool_bar"
          layout="@layout/toolbar_layout"&gt;
      &lt;/include&gt;
  
      &lt;include
          android:id="@+id/SlidingPanel"
          layout="@layout/activity_sliding"&gt;
      &lt;/include&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sATpf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sATpf.png" alt="enter image description here"></a></p>