Newer
Older
org.ntlab.acanthus_client / app / src / main / res / layout / activity_title.xml
t-tai on 20 Jul 2021 2 KB #134 テーマ色を設定し、切り替えできるようにしました
  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=".views.title.TitleActivity">
  8.  
  9. <ImageView
  10. android:id="@+id/imageView2"
  11. android:layout_width="0dp"
  12. android:layout_height="0dp"
  13. android:scaleType="fitXY"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintEnd_toEndOf="parent"
  16. app:layout_constraintStart_toStartOf="parent"
  17. app:layout_constraintTop_toTopOf="parent"
  18. app:srcCompat="@drawable/background"
  19. tools:ignore="ContentDescription" />
  20.  
  21. <ImageView
  22. android:id="@+id/carlos"
  23. android:layout_width="wrap_content"
  24. android:layout_height="match_parent"
  25. android:layout_alignParentTop="false"
  26. android:layout_centerHorizontal="false"
  27. android:scaleType="centerInside"
  28. app:layout_constraintBottom_toBottomOf="parent"
  29. app:layout_constraintEnd_toEndOf="parent"
  30. app:layout_constraintStart_toStartOf="parent"
  31. app:layout_constraintTop_toTopOf="parent"
  32. app:srcCompat="@drawable/title"
  33. tools:ignore="ContentDescription" />
  34.  
  35. <ImageView
  36. android:id="@+id/gifImage"
  37. android:layout_width="88dp"
  38. android:layout_height="74dp"
  39. android:layout_marginStart="16dp"
  40. android:layout_marginTop="16dp"
  41. android:visibility="invisible"
  42. app:layout_constraintStart_toStartOf="parent"
  43. app:layout_constraintTop_toTopOf="parent"
  44. app:srcCompat="@drawable/load"
  45. tools:ignore="ContentDescription" />
  46.  
  47. <View
  48. android:id="@+id/view"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. app:layout_constraintEnd_toEndOf="parent"
  52. app:layout_constraintHorizontal_bias="0.0"
  53. app:layout_constraintStart_toStartOf="@+id/imageView2"
  54. app:layout_constraintTop_toBottomOf="@+id/gifImage" />
  55.  
  56. </androidx.constraintlayout.widget.ConstraintLayout>