android - Impliment Slidingdrawer with viewpager where slidingdrawer resides on the viewpager -


enter image description here

i want display viewpager slidingdrawer.viewpager used scroll images , on top of viewpager want place 1 sliding drawer(top button).

i attached sample code. if have idea how implement screen, please me out.

  • android:id="@+id/linearlayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" >  <textview     android:id="@+id/textview01"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_marginleft="10dip"     android:text="infra2apps"     android:textcolor="#ffffff"     android:textsize="9pt" />  <textview     android:id="@+id/textview1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_marginleft="6dip"     android:text="sales , marketing resources"     android:textcolor="#ffffff"     android:textstyle="bold"     android:typeface="sans" /> 

    <linearlayout     android:id="@+id/handle"     android:layout_width="wrap_content"     android:layout_height="wrap_content" >      <imageview         android:id="@+id/imageview"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:src="@drawable/arrow" /> </linearlayout>  <imageview     android:id="@+id/content"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:background="#ff0000"     android:src="@drawable/love" /> 

    <android.support.v4.view.viewpager     android:id="@+android:id/viewpager"     android:layout_width="fill_parent"     android:layout_height="fill_parent" /> 

    <imageview     android:id="@+id/settings"     android:layout_width="wrap_content"     android:layout_height="25dp"     android:src="@drawable/settings" />  <imageview     android:id="@+id/search"     android:layout_width="wrap_content"     android:layout_height="24dp"     android:src="@drawable/searchbutton" />  <imageview     android:id="@+id/refresh"     android:layout_width="wrap_content"     android:layout_height="27dp"     android:src="@drawable/refreshrest" />  <imageview     android:id="@+id/question"     android:layout_width="wrap_content"     android:layout_height="26dp"     android:src="@drawable/questionmark" /> 

use frame layout , use drawer fixed width , height.

<framelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent" >      <linearlayout         android:id="@+id/middle_ll"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="horizontal" >          <android.support.v4.view.viewpager             android:id="@+id/view_pager"             android:layout_width="match_parent"             android:layout_height="match_parent" />     </linearlayout>      <slidingdrawer         android:id="@+id/option_menu"         android:layout_width="wrap_content"         android:layout_height="@dimen/drawer_top_height"         android:layout_alignparentright="true"         android:background="@android:color/transparent"         android:content="@+id/content"         android:handle="@+id/handle"         android:rotation="180" >          <relativelayout             android:id="@+id/content"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentright="true"             android:orientation="vertical"             android:rotation="180" >              <include                 android:id="@+id/menu_pop_down"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_alignparentright="true"                 layout="@layout/menu_layout"                 android:visibility="visible" />         </relativelayout>          <relativelayout             android:id="@+id/handle"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:rotation="180" >              <imageview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_alignparentright="true"                 android:src="@drawable/date_picker_icon" />         </relativelayout>     </slidingdrawer>  </framelayout> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -