Newer
Older
NemophilaClient / app / src / main / res / layout / activity_friend.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.1"
        android:orientation="horizontal">

        <Space
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="0.02"/>

        <Button
            android:id="@+id/showFriend"
            android:text="フレンド一覧"
            android:autoSizeTextType="uniform"
            android:autoSizeMaxTextSize="20dp"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="0.48"
            android:backgroundTint="#CFD8DC"/>

        <Button
            android:id="@+id/showRequesting"
            android:text="申請中"
            android:autoSizeTextType="uniform"
            android:autoSizeMaxTextSize="20dp"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="0.48"
            android:backgroundTint="#CFD8DC"/>

        <Space
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="0.02"/>
    </LinearLayout>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="0.05"
        android:layout_marginLeft="20dp"
        android:text="現在のフレンド一覧"/>

    <FrameLayout
        android:id="@+id/fragmentPlace"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.8">

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/friendsList"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="visible"/>

        <LinearLayout
            android:id="@+id/requestingLayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:visibility="invisible">

            <Space
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.02"/>

            <TextView
                android:id="@+id/titleSearchRequesting"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.05"
                android:text=" IDで検索してフレンド申請を送る"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.1"
                android:orientation="horizontal">

                <Space
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="0.05"/>

                <EditText
                    android:id="@+id/inputRequestingId"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="0.6"
                    android:ems="10"
                    android:hint="IDを入力"
                    android:inputType="textPersonName"/>

                <Space
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="0.1"/>

                <Button
                    android:id="@+id/requestingSearchButton"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="0.2"
                    android:backgroundTint="#00BCD4"
                    android:text="検索"/>

                <Space
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="0.05"/>

            </LinearLayout>


            <Space
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.05"/>

            <TextView
                android:id="@+id/titleRequestingList"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.05"
                android:text=" フレンド申請中のユーザー"/>

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/requestingList"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.73"/>
        </LinearLayout>

    </FrameLayout>

    <Button
        android:id="@+id/close"
        android:text="閉じる"
        android:autoSizeTextType="uniform"
        android:autoSizeMaxTextSize="30sp"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.1"
        android:backgroundTint="#CFD8DC"/>

</LinearLayout>