layout_search_suggestion.xml 3.04 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
4
    android:layout_width="match_parent"
    android:layout_height="match_parent"
5
    xmlns:app="http://schemas.android.com/apk/res-auto"
6
    android:orientation="vertical">
7

8
    <foundation.e.blisslauncher.core.customviews.BlurLayout
9
10
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
11
        app:blurCornerRadius="100dp">
12

13
        <RelativeLayout
14
15
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
            android:background="@drawable/search_widget"
            android:focusableInTouchMode="true"
            android:padding="8dp">

            <foundation.e.blisslauncher.core.customviews.BlissInput
                android:id="@+id/search_input"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_toStartOf="@+id/clearSuggestionImageView"
                android:background="@android:color/transparent"
                android:drawableStart="@drawable/ic_search_black_24dp"
                android:drawablePadding="8dp"
                android:hint="@string/search"
                android:imeOptions="actionSearch"
                android:inputType="text"
                android:maxLines="1"
                android:textColor="@color/on_surface_high_emphasis"
Suphon Thanakornpakapong's avatar
Suphon Thanakornpakapong committed
34
35
                android:textColorHint="@color/on_surface_medium_emphasis"
                android:theme="?searchBarTheme" />
36
37
38
39
40
41
42
43
44
45
46
47
48

            <ImageView
                android:id="@+id/clearSuggestionImageView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_centerVertical="true"
                android:src="@drawable/ic_cancel_white_24dp"
                android:visibility="gone" />
        </RelativeLayout>
    </foundation.e.blisslauncher.core.customviews.BlurLayout>

    <foundation.e.blisslauncher.core.customviews.BlurLayout
49
50
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
51
52
53
54
55
56
57
58
59
        android:layout_marginTop="12dp"
        android:layout_marginBottom="4dp"
        app:blurCornerRadius="12dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/item_widget_round_corner"
            android:orientation="vertical">
60

61
62
63
            <include
                android:id="@+id/used_apps_layout"
                layout="@layout/layout_used_apps" />
64

65
66
67
68
69
70
71
72
            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/suggestionRecyclerView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="4dp" />
        </LinearLayout>
    </foundation.e.blisslauncher.core.customviews.BlurLayout>
</LinearLayout>