Newer
Older
NemophilaClient / app / src / main / res / layout / layout_friend_dialog.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    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>

    <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"/>

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/requestingList"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone"/>
    </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>