|
|
@@ -1,9 +1,58 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:background="#ffffff"
|
|
|
tools:context=".ui.activity.SearchActivity">
|
|
|
|
|
|
-</android.support.constraint.ConstraintLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/search_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="5dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/search_but_back"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:contentDescription="@string/image_des"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:src="@drawable/narrow_back_black" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/search_input_txt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_input_background_radius"
|
|
|
+ android:hint="@string/search_hint_txt"
|
|
|
+ android:inputType="text"
|
|
|
+ android:paddingLeft="5dp"
|
|
|
+ android:paddingRight="5dp"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:textColorHint="#aaaaaa"
|
|
|
+ android:textSize="14sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/search_but_search"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingLeft="8dp"
|
|
|
+ android:paddingRight="8dp"
|
|
|
+ android:text="@string/search_but_text" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <android.support.v7.widget.RecyclerView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_below="@+id/search_bar"
|
|
|
+ android:layout_alignParentStart="true" />
|
|
|
+
|
|
|
+</RelativeLayout>
|