Advertisement
cyter

Updated_custom_drawer_item

May 21st, 2015
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:layout_width="fill_parent"
  4.     android:layout_height="fill_parent" >
  5.  
  6.      <LinearLayout
  7.         android:id="@+id/spinnerLayout"
  8.         android:layout_width="fill_parent"
  9.         android:layout_height="wrap_content"
  10.         android:orientation="vertical"
  11.       android:layout_marginTop="0dp"
  12.          >
  13.  
  14.            <Spinner
  15.                         android:id="@+id/drawerSpinner"
  16.                         android:layout_width="fill_parent"
  17.                         android:layout_height="0dp"
  18.                         android:layout_weight="1" />
  19.     </LinearLayout>
  20.  
  21.     <LinearLayout
  22.         android:id="@+id/headerLayout"
  23.         android:layout_width="fill_parent"
  24.         android:layout_height="wrap_content"
  25.         android:orientation="vertical"
  26.       android:layout_marginTop="20dp"
  27.          >
  28.  
  29.         <TextView
  30.             android:id="@+id/drawerTitle"
  31.             android:layout_width="wrap_content"
  32.             android:layout_height="wrap_content"
  33.  
  34.             android:textAppearance="?android:attr/textAppearanceSmall" />
  35.  
  36.              <View
  37.         android:layout_width="match_parent"
  38.         android:layout_height="2dp"
  39.         android:layout_marginBottom="1dp"
  40.         android:layout_marginTop="1dp"
  41.         android:background="#DADADC" ></View>
  42.  
  43.     </LinearLayout>
  44.  
  45.       <LinearLayout
  46.         android:id="@+id/itemLayout"
  47.         android:layout_width="fill_parent"
  48.         android:layout_height="wrap_content"
  49.         android:layout_alignParentLeft="true"
  50.         android:orientation="vertical"
  51.         android:layout_marginTop="0dp"
  52.  
  53.         android:background="?android:attr/activatedBackgroundIndicator"
  54.        >
  55.  
  56.                 <LinearLayout
  57.  
  58.                     android:layout_width="fill_parent"
  59.                     android:layout_height="wrap_content"
  60.                     android:minHeight="50dp"
  61.                    >
  62.  
  63.                     <ImageView
  64.                         android:id="@+id/drawer_icon"
  65.                         android:layout_width="wrap_content"
  66.                         android:layout_height="wrap_content"
  67.                         />
  68.  
  69.                     <TextView
  70.                         android:id="@+id/drawer_itemName"
  71.                         android:layout_width="wrap_content"
  72.                         android:layout_height="wrap_content"
  73.                         android:textAppearance="?android:attr/textAppearanceLarge"
  74.  
  75.                          />
  76.                 </LinearLayout>
  77.  
  78.                  <View
  79.         android:layout_width="match_parent"
  80.         android:layout_height="1dp"
  81.         android:layout_marginBottom="0dp"
  82.         android:layout_marginTop="0dp"
  83.         android:layout_marginLeft="10dp"
  84.         android:layout_marginRight="10dp"
  85.         android:background="#DADADC"
  86.          ></View>
  87.  
  88.       </LinearLayout>
  89. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement