Newer
Older
org.ntlab.acanthus_client / app / src / main / res / layout / activity_userpage.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:layout_margin="16dp"
        app:layout_constraintTop_toTopOf="parent"
        tools:layout_editor_absoluteX="0dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_margin="0dp"
            android:layout_weight="0.001"
            android:gravity="top|center_vertical"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="0dp">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical"
                app:layout_constraintTop_toTopOf="parent"
                tools:layout_editor_absoluteX="0dp">

                <org.ntlab.acanthus_client.views.button.PushButton
                    android:id="@+id/returnButton"
                    android:layout_width="50dp"
                    android:layout_height="50dp"
                    android:gravity="left"
                    android:background="@drawable/ic_baseline_west" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="right">

                    <org.ntlab.acanthus_client.views.button.PushButton
                        android:id="@+id/followUserButton"
                        android:layout_width="wrap_content"
                        android:layout_height="30dp"
                        android:paddingLeft="20dp"
                        android:paddingRight="20dp"
                        android:background="@drawable/flame_theme_color"
                        android:gravity="center_vertical"
                        android:text="フォローする"
                        android:textSize="16sp"
                        android:textColor="@color/white"
                        android:textStyle="bold"/>

                </LinearLayout>

            </LinearLayout>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1.0"
            android:orientation="vertical"
            android:gravity="center|center_vertical"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="0dp">

            <TextView
                android:id="@+id/userNameText"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginLeft="30dp"
                android:layout_marginRight="30dp"
                android:layout_marginTop="15dp"
                android:layout_marginBottom="15dp"
                android:layout_weight="0.001"
                android:background="@drawable/flame_theme_color_stroke"
                android:gravity="center|center_horizontal"
                android:text="username"
                android:textColor="#F14B16"
                android:textSize="24sp"
                android:textStyle="bold"
                android:typeface="sans"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="30dp"
                android:layout_marginRight="30dp"
                android:layout_weight="0.001"
                android:orientation="horizontal"
                android:gravity="center|center_horizontal">

                <org.ntlab.acanthus_client.views.button.PushButton
                    android:id="@+id/followListButton"
                    android:layout_width="wrap_content"
                    android:layout_height="35dp"
                    android:layout_marginRight="10dp"
                    android:layout_weight="0.5"
                    android:background="@drawable/flame_edit_list"
                    android:text="フォロー中"
                    android:typeface="sans"/>
                <org.ntlab.acanthus_client.views.button.PushButton
                    android:id="@+id/followerListButton"
                    android:layout_width="wrap_content"
                    android:layout_height="35dp"
                    android:layout_weight="0.5"
                    android:background="@drawable/flame_edit_list"
                    android:text="フォロワー"
                    android:typeface="sans"/>

            </LinearLayout>

            <TextView
                android:id="@+id/profileText"
                android:layout_width="match_parent"
                android:layout_height="199dp"
                android:layout_marginLeft="30dp"
                android:layout_marginRight="30dp"
                android:layout_marginTop="15dp"
                android:layout_marginBottom="15dp"
                android:layout_weight="0.8"
                android:padding="15dp"
                android:background="@drawable/flame_edit_list"
                android:text="自己紹介"
                android:textSize="14sp" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0.001"
            android:orientation="vertical"
            android:layout_margin="0dp"
            android:gravity="bottom|center_vertical">

            <org.ntlab.acanthus_client.views.button.PushButton
                android:id="@+id/workListButton"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:paddingLeft="20dp"
                android:paddingRight="20dp"
                android:layout_gravity="center"
                android:background="@drawable/flame_theme_color"
                android:text="作品一覧はこちら"
                android:textSize="16sp"
                android:textColor="@color/white"
                android:textStyle="bold"/>

        </LinearLayout>

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>