Newer
Older
CitrusClient / app / src / main / res / layout / fragment_search.xml
g-ichimaru on 3 Oct 2 KB hozon
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
    tools:context=".views.SearchFragment">

    <!-- TODO: Update blank fragment layout -->

    <TextView
        android:id="@+id/textSearch"
        android:layout_width="match_parent"
        android:layout_height="61dp"
        android:background="#C6F6A9"
        android:gravity="center"
        android:text="検索"
        android:textAlignment="center"
        android:textSize="30sp" />

    <SearchView
        android:id="@+id/search_word"
        android:layout_width="300dp"
        android:layout_height="80dp"
        android:layout_marginTop="60dp" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/sort_by"
        android:layout_width="100dp"
        android:layout_height="80dp"
        android:layout_marginLeft="300dp"
        android:layout_marginTop="60dp"
        android:layout_weight="1">

        <RadioButton
            android:id="@+id/rbBoth"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="いいね順" />

        <RadioButton
            android:id="@+id/rbSchedule"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:checked="true"
            android:text="古い順" />

        <RadioButton
            android:id="@+id/rbTodo"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:layout_weight="1"
            android:text="新しい順" />
    </androidx.recyclerview.widget.RecyclerView>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/public_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="top"
        android:layout_marginTop="140dp">

    </androidx.recyclerview.widget.RecyclerView>

</FrameLayout>