Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.56 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:id="@+id/parentLayout"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent"
  9.    tools:context="com.aljubaer.routeadvisor.HomeActivity">
  10.  
  11.     <fragment
  12.        android:id="@+id/map"
  13.        android:name="com.google.android.gms.maps.SupportMapFragment"
  14.        android:layout_width="match_parent"
  15.        android:layout_height="match_parent" />
  16.  
  17.     <android.support.design.widget.AppBarLayout
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:background="#17000000"
  21.        app:elevation="0dp">
  22.  
  23.         <android.support.constraint.ConstraintLayout
  24.            android:layout_width="match_parent"
  25.            android:layout_height="wrap_content"
  26.            android:padding="@dimen/vt_space"
  27.            app:elevation="16dp">
  28.  
  29.             <View
  30.                android:layout_width="match_parent"
  31.                android:layout_height="0dp"
  32.                android:background="@drawable/search_bar"
  33.                app:layout_constraintBottom_toBottomOf="parent"
  34.                app:layout_constraintTop_toTopOf="parent" />
  35.  
  36.             <android.support.v7.widget.AppCompatEditText
  37.                android:id="@+id/placeInput"
  38.                android:layout_width="0dp"
  39.                android:layout_height="wrap_content"
  40.                android:background="@android:color/transparent"
  41.                android:drawablePadding="@dimen/vt_space"
  42.                android:drawableStart="@drawable/ic_search_24dp"
  43.                android:hint="Search place"
  44.                android:maxLines="1"
  45.                android:paddingBottom="@dimen/vt_space_medium"
  46.                android:paddingEnd="@dimen/hz_space"
  47.                android:paddingStart="@dimen/hz_space"
  48.                android:paddingTop="@dimen/vt_space_medium"
  49.                app:layout_constraintEnd_toStartOf="@+id/clear"
  50.                app:layout_constraintStart_toStartOf="parent" />
  51.  
  52.             <android.support.v7.widget.AppCompatImageView
  53.                android:id="@+id/clear"
  54.                android:layout_width="40dp"
  55.                android:layout_height="0dp"
  56.                android:background="?attr/selectableItemBackground"
  57.                android:clickable="true"
  58.                android:focusable="true"
  59.                android:padding="@dimen/icon_padding"
  60.                android:src="@drawable/ic_clear_24dp"
  61.                android:visibility="gone"
  62.                app:layout_constraintBottom_toBottomOf="parent"
  63.                app:layout_constraintEnd_toEndOf="parent"
  64.                app:layout_constraintTop_toTopOf="parent"
  65.                app:tint="@color/hintText" />
  66.  
  67.         </android.support.constraint.ConstraintLayout>
  68.  
  69.     </android.support.design.widget.AppBarLayout>
  70.  
  71.     <android.support.v7.widget.RecyclerView
  72.        android:id="@+id/placeSearchResults"
  73.        android:layout_width="match_parent"
  74.        android:layout_height="wrap_content"
  75.        android:layout_marginEnd="@dimen/vt_space"
  76.        android:layout_marginStart="@dimen/vt_space"
  77.        app:layout_behavior="@string/appbar_scrolling_view_behavior"
  78.        android:scrollbars="vertical" />
  79.  
  80.     <include layout="@layout/progressbar" />
  81.  
  82.     <include layout="@layout/place_details" />
  83.  
  84. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement