Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.80 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="@dimen/drawer_width"
  4.    android:layout_height="match_parent"
  5.    android:background="@color/colorPrimaryDark"
  6.    android:orientation="vertical">
  7.  
  8.     <RelativeLayout
  9.        android:layout_width="match_parent"
  10.        android:layout_height="@dimen/drawer_header_height"
  11.        android:background="@drawable/app_gradient"
  12.        android:clickable="true">
  13.  
  14.         <ImageView
  15.            android:id="@+id/image_drawer_header"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="match_parent"
  18.            android:layout_alignParentStart="true"
  19.            android:layout_alignParentTop="true"
  20.            android:scaleType="centerCrop"
  21.            android:visibility="gone"
  22.            android:src="@drawable/image_navbar_header" />
  23.  
  24.         <TextView
  25.            android:layout_width="wrap_content"
  26.            android:layout_height="wrap_content"
  27.            android:layout_alignParentBottom="true"
  28.            android:layout_marginBottom="14dp"
  29.            android:layout_marginStart="13dp"
  30.            android:fontFamily="@font/roboto_black"
  31.            android:padding="10dp"
  32.            android:text="@string/title_nav_drawer"
  33.            android:textColor="@color/colorNavBarTitleText"
  34.            android:textSize="@dimen/drawer_header_text_size" />
  35.  
  36.     </RelativeLayout>
  37.  
  38.     <RelativeLayout
  39.        android:layout_width="match_parent"
  40.        android:layout_height="wrap_content"
  41.        android:visibility="gone"
  42.        android:background="?android:attr/selectableItemBackgroundBorderless"
  43.        android:layout_marginTop="@dimen/drawer_try_premium_layout_margin_top">
  44.  
  45.         <RelativeLayout
  46.            android:id="@+id/layout_try_premium"
  47.            android:layout_width="match_parent"
  48.            android:layout_height="@dimen/drawer_try_premium_layout"
  49.            android:background="@drawable/bg_drawer_header">
  50.  
  51.             <TextView
  52.                android:layout_width="wrap_content"
  53.                android:layout_height="wrap_content"
  54.                android:layout_centerVertical="true"
  55.                android:layout_marginStart="20dp"
  56.                android:fontFamily="@font/roboto_bold"
  57.                android:text="@string/string_try_premium"
  58.                android:textColor="@color/colorNavDrawerPremiumText"
  59.                android:textSize="@dimen/drawer_try_premium_text_size" />
  60.  
  61.             <ImageView
  62.                android:layout_width="@dimen/drawer_try_premium_image_width"
  63.                android:layout_height="@dimen/drawer_try_premium_image_height"
  64.                android:layout_alignParentEnd="true"
  65.                android:layout_centerVertical="true"
  66.                android:layout_marginEnd="20dp"
  67.                android:src="@drawable/ic_right_arrow_blue" />
  68.  
  69.         </RelativeLayout>
  70.     </RelativeLayout>
  71.  
  72.  
  73.     <RelativeLayout
  74.        android:layout_width="match_parent"
  75.        android:layout_height="match_parent">
  76.  
  77.         <RelativeLayout
  78.            android:layout_width="match_parent"
  79.            android:layout_height="match_parent"
  80.            android:layout_above="@+id/layout_terms_and_privacy">
  81.  
  82.             <android.support.v7.widget.RecyclerView
  83.                android:id="@+id/recyler_view_navigation_drawer"
  84.                android:layout_width="match_parent"
  85.                android:layout_height="match_parent"
  86.                android:paddingTop="20dp" />
  87.         </RelativeLayout>
  88.  
  89.         <LinearLayout
  90.            android:id="@+id/layout_terms_and_privacy"
  91.            android:layout_width="match_parent"
  92.            android:layout_height="50dp"
  93.            android:layout_alignParentBottom="true"
  94.            android:orientation="horizontal">
  95.  
  96.             <TextView
  97.                android:id="@+id/text_terms"
  98.                android:layout_width="0dp"
  99.                android:layout_height="match_parent"
  100.                android:layout_marginLeft="50dp"
  101.                android:layout_weight="1"
  102.                android:gravity="center"
  103.                android:text="Terms"
  104.                android:textColor="@color/colorNavBarItem1"
  105.                android:textSize="@dimen/text_size_drawer_item1" />
  106.  
  107.  
  108.             <TextView
  109.                android:id="@+id/text_privacy"
  110.                android:layout_width="0dp"
  111.                android:layout_height="match_parent"
  112.                android:layout_marginRight="50dp"
  113.                android:layout_weight="1"
  114.                android:gravity="center"
  115.                android:text="Privacy"
  116.                android:textColor="@color/colorNavBarItem1"
  117.                android:textSize="@dimen/text_size_drawer_item1" />
  118.  
  119.         </LinearLayout>
  120.     </RelativeLayout>
  121.  
  122. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement