You need to sign in or sign up before continuing.
search.xml 13.1 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">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:layout_weight="1"
            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:queryHint="  정책명, 대상, 키워드를 입력하세요"
                app:iconifiedByDefault="false"
                app:showAsAction="always" />

            <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="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:contentDescription="img"
            android:visibility="gone"
            app:srcCompat="@drawable/not_matching"
            tools:srcCompat="@drawable/not_matching" />

        <LinearLayout
            android:id="@+id/hashtag_linear"
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:layout_weight="1.1"
            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="17dp"
                        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="wrap_content"
                                android:text="가구상황별" />


                            <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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:layout_height="wrap_content"
                                    android:layout_marginBottom="5dp"
                                    android:checkable="false"
                                    android:text="# 장애인"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />

                                <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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 한부모"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />


                                <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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 다문화"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />
                            </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:checkable="false"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 저소득층"
                                    android:textAppearance="@style/TextAppearance.AppCompat"
                                    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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 임신/출산"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />

                            </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="wrap_content"
                                android:text="\n생애주기별" />


                            <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_marginBottom="5dp"
                                    android:checkable="false"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 아동"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />

                                <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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 청소년"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />


                                <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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 청년"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />
                            </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:checkable="false"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 중장년"
                                    android:textAppearance="@style/TextAppearance.AppCompat"
                                    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"
                                    app:chipBackgroundColor="#C6FFFFFF"
                                    android:text="# 노년"
                                    android:textAppearance="@style/TextAppearance.AppCompat" />

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

                </FrameLayout>

            </FrameLayout>

        </LinearLayout>
    </LinearLayout>
</LinearLayout>