Advertisement
javajavajava

Untitled

Dec 19th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. I was able to achieve this: http://i.stack.imgur.com/7ZMaF.png
  2.  
  3. Using the source below. Are you sure I can't replicate something like this without using an external JAR?
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:id="@+id/drawer_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent" >
  10.  
  11. <LinearLayout
  12. android:id="@+id/content_frame"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:orientation="vertical" >
  16. </LinearLayout>
  17.  
  18. <ListView
  19. android:id="@+id/left_drawer"
  20. android:layout_width="120dp"
  21. android:layout_height="match_parent"
  22. android:layout_gravity="start"
  23. android:background="@color/darkgrey"
  24. android:choiceMode="singleChoice"
  25. android:divider="@android:color/transparent"
  26. android:dividerHeight="0dp" />
  27.  
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="center_horizontal"
  32. android:autoLink="web"
  33. android:textStyle="bold" />
  34.  
  35. <RelativeLayout
  36. android:id="@+id/rl"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:background="#AAFFFFFF" >
  40.  
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:orientation="vertical" >
  45.  
  46. <com.idg.omv.ui.widget.VideosListView
  47. android:id="@+id/videosListView"
  48. android:layout_width="match_parent"
  49. android:layout_height="match_parent"
  50. android:adjustViewBounds="true" />
  51. </LinearLayout>
  52.  
  53. <LinearLayout
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_alignParentBottom="true"
  57. android:orientation="horizontal" >
  58.  
  59. <RelativeLayout
  60. android:layout_width="50dip"
  61. android:layout_height="50dip"
  62. android:layout_alignParentBottom="true" >
  63.  
  64. <ImageButton
  65. android:layout_width="match_parent"
  66. android:layout_height="match_parent"
  67. android:layout_gravity="left"
  68. android:background="@color/darkgrey"
  69. android:scaleType="centerCrop"
  70. android:src="@drawable/home_up_btn" />
  71. </RelativeLayout>
  72.  
  73. <RelativeLayout
  74. android:id="@+id/footer"
  75. android:layout_width="match_parent"
  76. android:layout_height="50dip"
  77. android:layout_alignParentBottom="true" >
  78.  
  79. <android.support.v4.view.ViewPager
  80. android:id="@+id/view_pager"
  81. android:layout_width="wrap_content"
  82. android:layout_height="match_parent" />
  83.  
  84. <ImageButton
  85. android:layout_width="30dip"
  86. android:layout_height="30dip"
  87. android:layout_alignParentLeft="true"
  88. android:layout_centerVertical="true"
  89. android:layout_marginLeft="15dp"
  90. android:focusable="false"
  91. android:src="@drawable/scroll_lt_arrow" />
  92.  
  93. <ImageButton
  94. android:layout_width="30dip"
  95. android:layout_height="30dip"
  96. android:layout_alignParentRight="true"
  97. android:layout_centerVertical="true"
  98. android:layout_marginRight="15dp"
  99. android:focusable="false"
  100. android:src="@drawable/scroll_rt_arrow" />
  101. </RelativeLayout>
  102. </LinearLayout>
  103. </RelativeLayout>
  104.  
  105. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement