-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch_layout.xml
37 lines (36 loc) · 1.34 KB
/
search_layout.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_gravity="center_horizontal">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="5"
android:orientation="horizontal"
android:layout_margin="6dp">
<AutoCompleteTextView
android:id="@+id/search_edit"
android:layout_width="0dp"
android:layout_weight="4"
android:layout_height="wrap_content"
android:hint="@string/search_hint"
android:inputType="text"
android:padding="6dp"
android:background="@android:color/transparent"/>
<ImageButton
android:id="@+id/searchImgbtn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:src="@drawable/search"
android:background="@drawable/shape"/>
</LinearLayout>
</android.support.v7.widget.CardView>