Newer
Older
NemophilaClient / app / src / main / res / layout / activity_mypage.xml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".MyPageActivity">
  8.  
  9. <ImageView
  10. android:id="@+id/icon"
  11. android:layout_width="80dp"
  12. android:layout_height="80dp"
  13. android:layout_marginTop="30dp"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintEnd_toEndOf="parent"
  16. app:layout_constraintHorizontal_bias="0.05"
  17. app:layout_constraintStart_toStartOf="parent"
  18. app:layout_constraintTop_toTopOf="parent"
  19. app:layout_constraintVertical_bias="0"
  20. app:srcCompat="@drawable/ic_launcher_foreground" />
  21.  
  22. <TextView
  23. android:id="@+id/name"
  24. android:layout_width="200dp"
  25. android:layout_height="30dp"
  26. android:layout_marginTop="35dp"
  27. android:text="Name"
  28. android:textSize="20sp"
  29. app:layout_constraintBottom_toBottomOf="parent"
  30. app:layout_constraintEnd_toStartOf="@+id/cancel"
  31. app:layout_constraintHorizontal_bias="0.5"
  32. app:layout_constraintStart_toEndOf="@+id/icon"
  33. app:layout_constraintTop_toTopOf="parent"
  34. app:layout_constraintVertical_bias="0" />
  35.  
  36. <TextView
  37. android:id="@+id/id"
  38. android:layout_width="200dp"
  39. android:layout_height="30dp"
  40. android:layout_marginTop="75dp"
  41. android:text="あなたのID"
  42. android:textSize="20sp"
  43. app:layout_constraintBottom_toBottomOf="parent"
  44. app:layout_constraintEnd_toStartOf="@+id/cancel"
  45. app:layout_constraintHorizontal_bias="0.5"
  46. app:layout_constraintStart_toEndOf="@+id/icon"
  47. app:layout_constraintTop_toTopOf="parent"
  48. app:layout_constraintVertical_bias="0" />
  49.  
  50. <Button
  51. android:id="@+id/cancel"
  52. android:layout_width="80dp"
  53. android:layout_height="60dp"
  54. android:layout_marginTop="50dp"
  55. android:text="閉じる"
  56. android:textSize="14sp"
  57. app:layout_constraintBottom_toBottomOf="parent"
  58. app:layout_constraintEnd_toEndOf="parent"
  59. app:layout_constraintHorizontal_bias="0.95"
  60. app:layout_constraintStart_toStartOf="parent"
  61. app:layout_constraintTop_toTopOf="parent"
  62. app:layout_constraintVertical_bias="0.0" />
  63.  
  64. <Button
  65. android:id="@+id/friend"
  66. android:layout_width="180dp"
  67. android:layout_height="40dp"
  68. android:layout_marginTop="20dp"
  69. android:text="フレンドリスト"
  70. android:textSize="16sp"
  71. app:layout_constraintBottom_toBottomOf="parent"
  72. app:layout_constraintEnd_toEndOf="parent"
  73. app:layout_constraintHorizontal_bias="0.1"
  74. app:layout_constraintStart_toStartOf="parent"
  75. app:layout_constraintTop_toBottomOf="@+id/cancel"
  76. app:layout_constraintVertical_bias="0.0" />
  77.  
  78. <Button
  79. android:id="@+id/requested"
  80. android:layout_width="180dp"
  81. android:layout_height="40dp"
  82. android:layout_marginTop="20dp"
  83. android:text="フレンド追加"
  84. android:textSize="14sp"
  85. app:layout_constraintBottom_toBottomOf="parent"
  86. app:layout_constraintEnd_toEndOf="parent"
  87. app:layout_constraintHorizontal_bias="0.9"
  88. app:layout_constraintStart_toStartOf="parent"
  89. app:layout_constraintTop_toBottomOf="@+id/cancel"
  90. app:layout_constraintVertical_bias="0.0" />
  91.  
  92. <Button
  93. android:id="@+id/changeMyPage"
  94. android:layout_width="180dp"
  95. android:layout_height="40dp"
  96. android:layout_marginTop="20dp"
  97. android:text="マイページ編集"
  98. android:textSize="16sp"
  99. app:layout_constraintBottom_toBottomOf="parent"
  100. app:layout_constraintEnd_toEndOf="parent"
  101. app:layout_constraintHorizontal_bias="0.5"
  102. app:layout_constraintStart_toStartOf="parent"
  103. app:layout_constraintTop_toBottomOf="@+id/requested"
  104. app:layout_constraintVertical_bias="0" />
  105.  
  106. <ScrollView
  107. android:id="@+id/postScroll"
  108. android:layout_width="0dp"
  109. android:layout_height="0dp"
  110. android:layout_marginStart="20dp"
  111. android:layout_marginTop="20dp"
  112. android:layout_marginEnd="20dp"
  113. android:layout_marginBottom="20dp"
  114. app:layout_constraintBottom_toBottomOf="parent"
  115. app:layout_constraintEnd_toEndOf="parent"
  116. app:layout_constraintHorizontal_bias="0.5"
  117. app:layout_constraintStart_toStartOf="parent"
  118. app:layout_constraintTop_toBottomOf="@+id/changeMyPage"
  119. app:layout_constraintVertical_bias="0">
  120.  
  121. <androidx.recyclerview.widget.RecyclerView
  122. android:id="@+id/postsList"
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. app:layout_constraintBottom_toBottomOf="parent"
  126. app:layout_constraintEnd_toEndOf="parent"
  127. app:layout_constraintHorizontal_bias="0"
  128. app:layout_constraintStart_toStartOf="parent"
  129. app:layout_constraintTop_toBottomOf="@+id/shopName"
  130. app:layout_constraintVertical_bias="0" />
  131. </ScrollView>
  132. </androidx.constraintlayout.widget.ConstraintLayout>