activity_allset.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2021 The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <FrameLayout
  15. xmlns:android="http://schemas.android.com/apk/res/android"
  16. xmlns:app="http://schemas.android.com/apk/res-auto"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:id="@+id/root_view"
  20. android:background="@color/all_set_page_background" >
  21. <androidx.constraintlayout.widget.ConstraintLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:id="@+id/content_view"
  25. android:fitsSystemWindows="true">
  26. <com.airbnb.lottie.LottieAnimationView
  27. android:id="@+id/animated_background"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:gravity="center"
  31. android:scaleType="centerCrop"
  32. app:lottie_rawRes="@raw/all_set_page_bg"
  33. app:lottie_autoPlay="true"
  34. app:lottie_loop="true" />
  35. <androidx.constraintlayout.widget.ConstraintLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. android:layout_marginStart="@dimen/allset_page_margin_horizontal"
  39. android:layout_marginEnd="@dimen/allset_page_margin_horizontal"
  40. android:layoutDirection="locale"
  41. android:textDirection="locale"
  42. android:forceHasOverlappingRendering="false"
  43. android:fitsSystemWindows="true" >
  44. <ImageView
  45. android:id="@+id/icon"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginTop="@dimen/allset_title_icon_margin_top"
  49. app:layout_constraintTop_toTopOf="parent"
  50. app:layout_constraintStart_toStartOf="parent"
  51. android:src="@drawable/ic_all_set"/>
  52. <TextView
  53. android:id="@+id/title"
  54. style="@style/TextAppearance.GestureTutorial.Feedback.Title"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="@dimen/allset_title_margin_top"
  58. app:layout_constraintTop_toBottomOf="@id/icon"
  59. app:layout_constraintStart_toStartOf="parent"
  60. android:gravity="start"
  61. android:text="@string/allset_title"/>
  62. <TextView
  63. android:id="@+id/subtitle"
  64. style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
  65. android:layout_width="0dp"
  66. android:layout_height="wrap_content"
  67. android:layout_marginTop="@dimen/allset_subtitle_margin_top"
  68. app:layout_constraintTop_toBottomOf="@id/title"
  69. app:layout_constraintStart_toStartOf="parent"
  70. app:layout_constraintWidth_max="@dimen/allset_subtitle_width_max"
  71. android:gravity="start"
  72. android:text="@string/allset_description"/>
  73. <androidx.constraintlayout.widget.Guideline
  74. android:id="@+id/navigation_settings_guideline_bottom"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:orientation="horizontal"
  78. app:layout_constraintGuide_percent="0.83" />
  79. <TextView
  80. android:id="@+id/navigation_settings"
  81. style="@style/TextAppearance.GestureTutorial.LinkText"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. app:layout_constraintStart_toStartOf="parent"
  85. app:layout_constraintEnd_toEndOf="parent"
  86. app:layout_constraintBottom_toBottomOf="@id/navigation_settings_guideline_bottom"
  87. android:minHeight="48dp"
  88. android:background="?android:attr/selectableItemBackground"
  89. android:text="@string/allset_navigation_settings" />
  90. <androidx.constraintlayout.widget.Guideline
  91. android:id="@+id/hint_guideline_bottom"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:orientation="horizontal"
  95. app:layout_constraintGuide_percent="0.94" />
  96. <TextView
  97. android:id="@+id/hint"
  98. style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
  99. android:textSize="14sp"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. app:layout_constraintStart_toStartOf="parent"
  103. app:layout_constraintEnd_toEndOf="parent"
  104. app:layout_constraintBottom_toBottomOf="@id/hint_guideline_bottom"
  105. android:text="@string/allset_hint"/>
  106. </androidx.constraintlayout.widget.ConstraintLayout>
  107. </androidx.constraintlayout.widget.ConstraintLayout>
  108. </FrameLayout>