Newer
Older
NemophilaClient / app / src / main / res / layout / activity_post.xml
Shinnosuke Iyonaga on 26 Sep 2023 8 KB Merge pull request #235 from nitta-lab-2023/PostAct
<?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"
    tools:context=".PostActivity">


  <TextView
      android:id="@+id/shopNamePoatAc"
      android:layout_width="250dp"
      android:layout_height="75dp"
      android:breakStrategy="high_quality"
      android:gravity="center_horizontal"
      android:text="お店の名前"
      android:textSize="18sp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.496"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.047" />


  <Button
      android:id="@+id/postAcReturnButton"
      android:layout_width="50dp"
      android:layout_height="55dp"
      android:backgroundTint="#00BCD4"
      android:text="×"
      android:textSize="20sp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.07"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.025" />

  <Spinner
      android:id="@+id/inputRate"
      android:layout_width="150dp"
      android:layout_height="50dp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.892"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.195"
      tools:ignore="SpeakableTextPresentCheck" />

  <Spinner
      android:id="@+id/inputGenre"
      android:layout_width="150dp"
      android:layout_height="50dp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.103"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.368"
      tools:ignore="SpeakableTextPresentCheck" />

  <TextView
      android:id="@+id/ratePostAc"
      android:layout_width="205dp"
      android:layout_height="50dp"
      android:text="☆☆☆☆☆"
      android:textSize="40sp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintEnd_toStartOf="@+id/inputRate"
      app:layout_constraintHorizontal_bias="0.953"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.183" />

  <TextView
      android:id="@+id/annotationgenre"
      android:layout_width="wrap_content"
      android:layout_height="25dp"
      android:text="ジャンルを入力"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.086"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.284" />


  <TextView
      android:id="@+id/annotationComment"
      android:layout_width="wrap_content"
      android:layout_height="25dp"
      android:text="コメントを入力"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.086"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.495" />

  <EditText
      android:id="@+id/inputComment"
      android:layout_width="350dp"
      android:layout_height="wrap_content"
      android:layout_marginTop="26dp"
      android:ems="10"
      android:inputType="textPersonName"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.488"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/annotationComment"
      app:layout_constraintVertical_bias="0.0" />

  <Button
      android:id="@+id/postButton"
      android:layout_width="100dp"
      android:layout_height="60dp"
      android:backgroundTint="#00BCD4"
      android:text="投稿"
      android:textSize="20sp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.9"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.895" />

  <Button
      android:id="@+id/selectpicturebutton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:backgroundTint="#00BCD4"
      android:text="+"
      android:textSize="20sp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.498"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.88" />

  <ImageView
      android:id="@+id/imageView1"
      android:layout_width="100dp"
      android:layout_height="100dp"
      app:layout_constraintBottom_toTopOf="@+id/selectpicturebutton"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.071"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/inputComment"
      tools:srcCompat="@tools:sample/avatars" />

  <ImageView
      android:id="@+id/imageView2"
      android:layout_width="100dp"
      android:layout_height="100dp"
      app:layout_constraintBottom_toTopOf="@+id/selectpicturebutton"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.5"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/inputComment"
      tools:srcCompat="@tools:sample/avatars" />

  <ImageView
      android:id="@+id/imageView3"
      android:layout_width="100dp"
      android:layout_height="100dp"
      app:layout_constraintBottom_toTopOf="@+id/postButton"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.924"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/inputComment"
      tools:srcCompat="@tools:sample/avatars" />

  <androidx.constraintlayout.widget.Group
      android:id="@+id/group"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:constraint_referenced_ids="imageView1,imageView2,imageView3" />

  <ImageButton
      android:id="@+id/deleteButton1"
      android:layout_width="30dp"
      android:layout_height="30dp"
      android:layout_marginStart="84dp"
      android:layout_marginBottom="84dp"
      android:layout_weight="0"
      android:background="@drawable/blue_circle_button"
      android:padding="5dp"
      android:scaleType="fitCenter"
      android:src="@drawable/ic_baseline_clear_24"
      app:layout_constraintBottom_toBottomOf="@+id/imageView1"
      app:layout_constraintStart_toStartOf="@+id/imageView1" />

  <ImageButton
      android:id="@+id/deleteButton2"
      android:layout_width="30dp"
      android:layout_height="30dp"
      android:layout_marginStart="84dp"
      android:layout_marginBottom="84dp"
      android:layout_weight="0"
      android:background="@drawable/blue_circle_button"
      android:padding="5dp"
      android:scaleType="fitCenter"
      android:src="@drawable/ic_baseline_clear_24"
      app:layout_constraintBottom_toBottomOf="@+id/imageView2"
      app:layout_constraintStart_toStartOf="@+id/imageView2" />


  <ImageButton
      android:id="@+id/deleteButton3"
      android:layout_width="30dp"
      android:layout_height="30dp"
      android:layout_marginStart="84dp"
      android:layout_marginBottom="84dp"
      android:layout_weight="0"
      android:background="@drawable/blue_circle_button"
      android:padding="5dp"
      android:scaleType="fitCenter"
      android:src="@drawable/ic_baseline_clear_24"
      app:layout_constraintBottom_toBottomOf="@+id/imageView3"
      app:layout_constraintStart_toStartOf="@+id/imageView3" />



</androidx.constraintlayout.widget.ConstraintLayout>