search.xml 15.3 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:weightSum="2">

    <androidx.appcompat.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="11dp"
        android:background="#FFF"
        android:elevation="5dp"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="모든 정책 검색"
            android:textSize="20dp"
            android:textColor="#000"
            android:layout_gravity="center"
            android:layout_centerHorizontal="true" />
    </androidx.appcompat.widget.Toolbar>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <SearchView
            android:id="@+id/searchForm"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="9dp"
            android:layout_marginTop="30dp"
            android:layout_marginRight="9dp"
            android:layout_marginBottom="9dp"
            android:background="@drawable/searchview_edge"
            android:focusable="false"

            android:layoutDirection="rtl"
            android:paddingStart="7dp"
            android:queryBackground="@android:color/transparent"
            android:queryHint="  정책명, 대상, 키워드를 입력하세요"
            app:iconifiedByDefault="false"
            app:showAsAction="always" >

        </SearchView>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <LinearLayout
                android:id="@+id/policy_scroll_view"
                android:layout_width="match_parent"
                android:layout_height="200dp"
                android:layout_weight="1"
                android:orientation="vertical">

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/searchRecyclerView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
                    tools:listitem="@layout/item_search">

                </androidx.recyclerview.widget.RecyclerView>

            </LinearLayout>

            <ImageView
                android:id="@+id/no_matching"
                android:layout_width="278dp"
                android:layout_height="278dp"
                android:layout_gravity="center_horizontal"
                android:layout_weight="1"
                android:contentDescription="img"
                android:visibility="gone"
                app:srcCompat="@drawable/not_matching" />

            <LinearLayout
                android:id="@+id/hashtag_linear"
                android:layout_width="match_parent"
                android:layout_height="200dp"
                android:layout_weight="2.5"
                android:orientation="vertical">

                <FrameLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">

                    <View
                        android:id="@+id/view2"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:background="#6629ABE2" />

                    <FrameLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent">

                        <com.google.android.material.chip.ChipGroup
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center|center_horizontal|center_vertical"
                            android:layout_marginStart="22dp"
                            android:foregroundGravity="center_vertical|center|center_horizontal">


                            <com.google.android.material.chip.ChipGroup
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content">

                                <TextView
                                    android:id="@+id/textView"
                                    android:layout_width="wrap_content"
                                    android:layout_height="28dp"
                                    android:text="> 가구상황별"
                                    android:textColor="#29ABE2"
                                    android:textSize="16dp" />


                                <com.google.android.material.chip.ChipGroup
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content">

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 장애인"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 한부모"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />


                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 다문화"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />
                                </com.google.android.material.chip.ChipGroup>

                                <com.google.android.material.chip.ChipGroup
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content">

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:checkable="false"
                                        android:text="# 저소득층"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF"
                                        app:chipIcon="@drawable/image01" />

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:checkable="false"
                                        android:text="# 임신/출산"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />

                                </com.google.android.material.chip.ChipGroup>
                            </com.google.android.material.chip.ChipGroup>

                            <com.google.android.material.chip.ChipGroup
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:layout_gravity="center|center_horizontal|center_vertical"
                                android:foregroundGravity="center_vertical|center|center_horizontal">

                                <TextView
                                    android:id="@+id/textVㅇiew"
                                    android:layout_width="wrap_content"
                                    android:layout_height="44dp"
                                    android:text="\n> 생애주기별"
                                    android:textColor="#29ABE2"
                                    android:textSize="16dp" />


                                <com.google.android.material.chip.ChipGroup
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content">

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 아동"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 청소년"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />


                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginBottom="5dp"
                                        android:checkable="false"
                                        android:text="# 청년"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />
                                </com.google.android.material.chip.ChipGroup>

                                <com.google.android.material.chip.ChipGroup
                                    android:layout_width="match_parent"
                                    android:layout_height="wrap_content">

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_marginRight="5dp"
                                        android:checkable="false"
                                        android:text="# 중장년"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF"
                                        app:chipIcon="@drawable/image01" />

                                    <com.google.android.material.chip.Chip
                                        style="@style/Widget.MaterialComponents.Chip.Choice"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:checkable="false"
                                        android:text="# 노년"
                                        android:textAppearance="@style/TextAppearance.AppCompat"
                                        android:textSize="16dp"
                                        app:chipBackgroundColor="#C6FFFFFF" />

                                </com.google.android.material.chip.ChipGroup>
                            </com.google.android.material.chip.ChipGroup>
                        </com.google.android.material.chip.ChipGroup>

                    </FrameLayout>

                </FrameLayout>

            </LinearLayout>
        </LinearLayout>



    </LinearLayout>
</LinearLayout>