Commit c47946e4 authored by Willard's avatar Willard

Minor refactors to nav drawer/main search activity

parent 89e9deae
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
xmlns:rsb="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
......@@ -12,7 +12,7 @@
<include
layout="@layout/app_bar_nav_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"/>
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
......@@ -20,159 +20,161 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_nav_drawer" >
app:headerLayout="@layout/nav_header_nav_drawer">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/colorBackground">
android:background="?android:attr/colorBackground"
android:orientation="vertical">
<include layout="@layout/nav_header_nav_drawer"
/>
<RelativeLayout
android:id="@+id/logged_in_header"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/logout_button"
android:text="Log Out"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
style="@style/Widget.AppCompat.Button.Borderless.Colored"/>
android:text="Log Out"/>
<TextView
android:id="@+id/greeting"
android:text="Hello, Willard"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"/>
android:layout_marginStart="10dp"
android:text="Hello, Willard"
android:textSize="24sp"/>
</RelativeLayout>
<Space
android:layout_width="match_parent"
android:layout_height="10dp" />
android:layout_height="10dp"/>
<TextView
android:typeface="monospace"
android:text="@string/drawer_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:textColor="#000000"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:textSize="20dp"/>
android:text="@string/drawer_1"
android:textColor="#000000"
android:textSize="20dp"
android:typeface="monospace"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
<TextView
android:typeface="monospace"
android:text="@string/drawer_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:textSize="20dp"/>
android:text="@string/drawer_2"
android:textColor="#000000"
android:textSize="20dp"
android:typeface="monospace"/>
<TextView
android:typeface="monospace"
android:text="@string/drawer_3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"/>
android:text="@string/drawer_3"
android:textColor="#000000"
android:typeface="monospace"/>
<LinearLayout
android:id="@+id/type_checkboxes"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
</LinearLayout>
<TextView
android:text="Cuisine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="#000000"
android:fontFamily="monospace"
android:typeface="monospace"
android:paddingBottom="5dp"
android:paddingLeft="10dp" />
android:paddingLeft="10dp"
android:text="Cuisine"
android:textColor="#000000"
android:textSize="14sp"
android:typeface="monospace"/>
<LinearLayout
android:id="@+id/cuisine_checkboxes"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
</LinearLayout>
<TextView
android:typeface="monospace"
android:text="@string/drawer_4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"/>
android:text="@string/drawer_4"
android:textColor="#000000"
android:typeface="monospace"/>
<org.florescu.android.rangeseekbar.RangeSeekBar
android:id="@+id/price_range_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
rsb:textAboveThumbsColor="#000000"
rsb:absoluteMaxValue="300"
rsb:absoluteMinValue="0"/>
rsb:absoluteMinValue="0"
rsb:textAboveThumbsColor="#000000"/>
<TextView
android:typeface="monospace"
android:text="@string/drawer_5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000000"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"/>
android:text="@string/drawer_5"
android:textColor="#000000"
android:typeface="monospace"/>
<LinearLayout
android:id="@+id/location_checkboxes"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
</LinearLayout>
<Button
android:text="@string/apply_filter"
android:id="@+id/apply_filter_button"
style="@style/Widget.AppCompat.Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/apply_filter_button"
android:elevation="10dp"
style="@style/Widget.AppCompat.Button" />
android:text="@string/apply_filter"/>
</LinearLayout>
</ScrollView>
......
......@@ -15,7 +15,7 @@
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:id="@+id/dishListView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment