Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I was able to achieve this: http://i.stack.imgur.com/7ZMaF.png
- Using the source below. Are you sure I can't replicate something like this without using an external JAR?
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <LinearLayout
- android:id="@+id/content_frame"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- </LinearLayout>
- <ListView
- android:id="@+id/left_drawer"
- android:layout_width="120dp"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- android:background="@color/darkgrey"
- android:choiceMode="singleChoice"
- android:divider="@android:color/transparent"
- android:dividerHeight="0dp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:autoLink="web"
- android:textStyle="bold" />
- <RelativeLayout
- android:id="@+id/rl"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#AAFFFFFF" >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical" >
- <com.idg.omv.ui.widget.VideosListView
- android:id="@+id/videosListView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:adjustViewBounds="true" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:orientation="horizontal" >
- <RelativeLayout
- android:layout_width="50dip"
- android:layout_height="50dip"
- android:layout_alignParentBottom="true" >
- <ImageButton
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="left"
- android:background="@color/darkgrey"
- android:scaleType="centerCrop"
- android:src="@drawable/home_up_btn" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/footer"
- android:layout_width="match_parent"
- android:layout_height="50dip"
- android:layout_alignParentBottom="true" >
- <android.support.v4.view.ViewPager
- android:id="@+id/view_pager"
- android:layout_width="wrap_content"
- android:layout_height="match_parent" />
- <ImageButton
- android:layout_width="30dip"
- android:layout_height="30dip"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="15dp"
- android:focusable="false"
- android:src="@drawable/scroll_lt_arrow" />
- <ImageButton
- android:layout_width="30dip"
- android:layout_height="30dip"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="15dp"
- android:focusable="false"
- android:src="@drawable/scroll_rt_arrow" />
- </RelativeLayout>
- </LinearLayout>
- </RelativeLayout>
- </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement