|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:layout_width="match_parent" |
5 | 6 | android:layout_height="wrap_content" |
6 | | - xmlns:tools="http://schemas.android.com/tools" |
7 | | - android:animateLayoutChanges="true" |
8 | | - android:background="@color/jetpack_powered_bottom_sheet_background" |
9 | | - android:orientation="vertical"> |
| 7 | + android:paddingStart="@dimen/margin_extra_extra_medium_large" |
| 8 | + android:paddingEnd="@dimen/margin_extra_extra_medium_large" |
| 9 | + android:background="@color/jetpack_powered_bottom_sheet_background"> |
10 | 10 |
|
11 | | - <androidx.constraintlayout.widget.Guideline |
12 | | - android:id="@+id/guideline3" |
| 11 | + <include |
| 12 | + android:id="@+id/handle" |
| 13 | + layout="@layout/bottom_sheet_handle_view" |
| 14 | + android:layout_width="match_parent" |
| 15 | + android:layout_height="wrap_content" |
| 16 | + android:layout_marginBottom="@dimen/margin_small" |
| 17 | + app:layout_constraintEnd_toEndOf="parent" |
| 18 | + app:layout_constraintStart_toStartOf="parent" |
| 19 | + app:layout_constraintTop_toTopOf="parent" /> |
| 20 | + |
| 21 | + <com.airbnb.lottie.LottieAnimationView |
| 22 | + android:id="@+id/illustration_view" |
13 | 23 | android:layout_width="wrap_content" |
14 | 24 | android:layout_height="wrap_content" |
15 | | - android:orientation="horizontal" |
16 | | - app:layout_constraintGuide_end="160dp" |
17 | | - tools:ignore="InconsistentLayout"/> |
| 25 | + android:layout_marginTop="@dimen/margin_64dp" |
| 26 | + android:scaleType="centerCrop" |
| 27 | + app:layout_constraintTop_toBottomOf="@id/handle" |
| 28 | + app:layout_constraintStart_toStartOf="parent" |
| 29 | + app:lottie_rawRes="@raw/wp2jp" |
| 30 | + app:lottie_enableMergePathsForKitKatAndAbove="true" |
| 31 | + app:lottie_autoPlay="true" |
| 32 | + app:lottie_loop="false" /> |
18 | 33 |
|
19 | | - <androidx.recyclerview.widget.RecyclerView |
20 | | - android:id="@+id/content_recycler_view" |
| 34 | + <TextView |
| 35 | + android:id="@+id/title" |
| 36 | + style="@style/TextAppearance.Material3.HeadlineMedium" |
21 | 37 | android:layout_width="match_parent" |
22 | 38 | android:layout_height="wrap_content" |
23 | | - android:layout_marginEnd="@dimen/margin_extra_extra_medium_large" |
24 | | - android:layout_marginStart="@dimen/margin_extra_extra_medium_large" |
25 | | - android:layout_marginTop="@dimen/my_site_bottom_spacing" |
26 | | - android:clipToPadding="false" |
27 | | - android:descendantFocusability="beforeDescendants" |
28 | | - android:scrollbars="vertical" |
29 | | - app:layout_constrainedHeight="true" |
30 | | - app:layout_constraintBottom_toTopOf="@+id/guideline3" |
| 39 | + android:layout_marginTop="@dimen/margin_extra_medium_large" |
| 40 | + android:text="@string/wp_jetpack_powered_better_with_jetpack" |
| 41 | + android:textFontWeight="700" |
| 42 | + app:layout_constraintTop_toBottomOf="@id/illustration_view" |
| 43 | + app:layout_constraintStart_toStartOf="parent" |
31 | 44 | app:layout_constraintEnd_toEndOf="parent" |
| 45 | + tools:targetApi="p" /> |
| 46 | + |
| 47 | + <TextView |
| 48 | + android:id="@+id/caption" |
| 49 | + style="?attr/textAppearanceBody1" |
| 50 | + android:text="@string/wp_jetpack_powered_features" |
| 51 | + android:layout_width="match_parent" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_marginTop="@dimen/margin_extra_medium_large" |
| 54 | + app:layout_constraintTop_toBottomOf="@id/title" |
32 | 55 | app:layout_constraintStart_toStartOf="parent" |
33 | | - app:layout_constraintTop_toBottomOf="@+id/handle" |
34 | | - app:layout_constraintVertical_bias="0.0" /> |
| 56 | + app:layout_constraintEnd_toEndOf="parent"/> |
35 | 57 |
|
36 | 58 | <com.google.android.material.button.MaterialButton |
37 | 59 | android:id="@+id/primary_button" |
38 | 60 | android:layout_width="match_parent" |
39 | 61 | android:layout_height="wrap_content" |
40 | | - android:layout_gravity="center" |
41 | | - android:layout_marginEnd="@dimen/margin_extra_extra_medium_large" |
42 | | - android:layout_marginStart="@dimen/margin_extra_extra_medium_large" |
43 | | - android:layout_marginTop="@dimen/margin_extra_extra_medium_large" |
| 62 | + android:layout_marginTop="@dimen/margin_extra_extra_large" |
| 63 | + android:layout_marginBottom="@dimen/margin_64dp" |
44 | 64 | android:backgroundTint="@color/jetpack_green_40" |
45 | 65 | android:gravity="center" |
46 | | - android:minHeight="@dimen/margin_extra_extra_large" |
| 66 | + android:minHeight="@dimen/margin_64dp" |
| 67 | + app:cornerRadius="@dimen/margin_small_medium" |
47 | 68 | android:text="@string/wp_jetpack_get_new_jetpack_app" |
48 | 69 | android:textAppearance="?attr/textAppearanceSubtitle2" |
49 | 70 | android:textColor="?attr/colorOnSecondary" |
50 | | - app:layout_constraintTop_toBottomOf="@id/guideline3" |
51 | | - app:layout_constraintBottom_toTopOf="@id/secondary_button" |
| 71 | + app:layout_constraintTop_toBottomOf="@id/caption" |
52 | 72 | app:layout_constraintEnd_toEndOf="parent" |
53 | 73 | app:layout_constraintStart_toStartOf="parent" |
54 | | - app:layout_goneMarginBottom="@dimen/margin_extra_extra_medium_large" /> |
| 74 | + app:layout_constraintBottom_toBottomOf="parent"/> |
55 | 75 |
|
56 | | - <com.google.android.material.button.MaterialButton |
57 | | - android:id="@+id/secondary_button" |
58 | | - android:visibility="gone" |
59 | | - style="@style/Widget.MaterialComponents.Button.TextButton" |
60 | | - android:layout_width="match_parent" |
61 | | - android:layout_height="wrap_content" |
62 | | - android:layout_gravity="center" |
63 | | - android:layout_marginBottom="@dimen/margin_extra_extra_medium_large" |
64 | | - android:layout_marginEnd="@dimen/margin_extra_extra_medium_large" |
65 | | - android:layout_marginStart="@dimen/margin_extra_extra_medium_large" |
66 | | - android:gravity="center" |
67 | | - android:minHeight="@dimen/margin_extra_extra_large" |
68 | | - android:textAppearance="?attr/textAppearanceSubtitle2" |
69 | | - android:textAllCaps="false" |
70 | | - android:textColor="@color/jetpack_green" |
71 | | - app:layout_constraintBottom_toBottomOf="parent" |
72 | | - app:layout_constraintEnd_toEndOf="parent" |
73 | | - app:layout_constraintStart_toStartOf="parent" |
74 | | - tools:text="Continue to Reader" |
75 | | - tools:visibility="visible"/> |
76 | | - |
77 | | - <include |
78 | | - android:id="@+id/handle" |
79 | | - layout="@layout/bottom_sheet_handle_view" |
80 | | - android:layout_width="match_parent" |
81 | | - android:layout_height="wrap_content" |
82 | | - android:layout_marginBottom="@dimen/margin_small" |
83 | | - app:layout_constraintEnd_toEndOf="parent" |
84 | | - app:layout_constraintStart_toStartOf="parent" |
85 | | - app:layout_constraintTop_toTopOf="parent" /> |
86 | 76 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments