|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<merge 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" |
5 | | - android:id="@+id/container" |
6 | | - android:layout_width="match_parent" |
7 | | - android:layout_height="match_parent"> |
| 4 | + xmlns:tools="http://schemas.android.com/tools"> |
8 | 5 |
|
9 | | - <me.zhanghai.android.fastscroll.FastScrollScrollView |
10 | | - android:id="@+id/scroll_view" |
11 | | - android:layout_width="match_parent" |
12 | | - android:layout_height="match_parent" |
13 | | - android:layout_marginBottom="80dp"> |
14 | | - |
15 | | - <androidx.appcompat.widget.LinearLayoutCompat |
16 | | - android:layout_width="match_parent" |
17 | | - android:layout_height="wrap_content" |
18 | | - android:orientation="vertical" |
19 | | - android:paddingHorizontal="24dp"> |
20 | | - |
21 | | - <include |
22 | | - android:id="@+id/description_section" |
23 | | - layout="@layout/lesson_description_section" /> |
24 | | - |
25 | | - <include |
26 | | - android:id="@+id/layout_preview_header" |
27 | | - layout="@layout/lesson_section_header" |
28 | | - tools:text="@string/layout_preview" /> |
29 | | - |
30 | | - <com.google.android.material.textview.MaterialTextView |
31 | | - android:id="@+id/text_view_spinner_label" |
32 | | - style="@style/TextAppearance.Material3.HeadlineSmall" |
33 | | - android:layout_width="wrap_content" |
34 | | - android:layout_height="wrap_content" |
35 | | - android:layout_marginTop="24dp" |
36 | | - android:text="@string/spinner_choose_label" /> |
37 | | - |
38 | | - <com.google.android.material.card.MaterialCardView |
39 | | - android:id="@+id/spinner_card" |
40 | | - style="@style/Widget.Material3.CardView.Outlined" |
41 | | - android:layout_width="match_parent" |
42 | | - android:layout_height="wrap_content" |
43 | | - android:layout_marginTop="16dp" |
44 | | - android:layout_marginBottom="24dp" |
45 | | - app:contentPadding="24dp" |
46 | | - app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewTopRoundedOutlined"> |
47 | | - |
48 | | - <androidx.appcompat.widget.LinearLayoutCompat |
49 | | - android:layout_width="match_parent" |
50 | | - android:layout_height="wrap_content" |
51 | | - android:orientation="vertical"> |
52 | | - |
53 | | - <com.google.android.material.textview.MaterialTextView |
54 | | - android:id="@+id/text_view_spinner_description" |
55 | | - style="@style/TextAppearance.Material3.BodyLarge" |
56 | | - android:layout_width="match_parent" |
57 | | - android:layout_height="wrap_content" |
58 | | - android:text="@string/spinner_description" /> |
59 | | - |
60 | | - <Spinner |
61 | | - android:id="@+id/spinner_options" |
62 | | - android:layout_width="match_parent" |
63 | | - android:layout_height="wrap_content" |
64 | | - android:layout_marginTop="16dp" |
65 | | - android:prompt="@string/spinner_prompt" /> |
66 | | - |
67 | | - <com.google.android.material.textview.MaterialTextView |
68 | | - android:id="@+id/text_selected_item" |
69 | | - style="@style/TextAppearance.Material3.BodyLarge" |
70 | | - android:layout_width="match_parent" |
71 | | - android:layout_height="wrap_content" |
72 | | - android:layout_marginTop="16dp" |
73 | | - android:text="@string/spinner_selected_none" |
74 | | - tools:text="@string/spinner_selected_example" /> |
75 | | - </androidx.appcompat.widget.LinearLayoutCompat> |
76 | | - </com.google.android.material.card.MaterialCardView> |
77 | | - </androidx.appcompat.widget.LinearLayoutCompat> |
78 | | - </me.zhanghai.android.fastscroll.FastScrollScrollView> |
79 | | - |
80 | | - <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton |
81 | | - android:id="@+id/floating_button_show_syntax" |
82 | | - style="@style/Widget.Material3.ExtendedFloatingActionButton.Icon.Surface" |
83 | | - android:layout_width="wrap_content" |
84 | | - android:layout_height="wrap_content" |
85 | | - android:layout_marginEnd="24dp" |
86 | | - android:layout_marginBottom="24dp" |
87 | | - android:contentDescription="@string/tooltip_show_java_code_snippet" |
88 | | - android:text="@string/show_code" |
89 | | - android:textSize="14sp" |
90 | | - android:tooltipText="@string/tooltip_show_java_code_snippet" |
91 | | - app:icon="@drawable/ic_code" |
92 | | - app:layout_constraintBottom_toBottomOf="parent" |
93 | | - app:layout_constraintEnd_toEndOf="parent" |
94 | | - tools:targetApi="26" /> |
95 | | -</androidx.constraintlayout.widget.ConstraintLayout> |
| 6 | + <include |
| 7 | + android:id="@+id/lesson_scaffold" |
| 8 | + layout="@layout/lesson_scroll_scaffold" /> |
| 9 | +</merge> |
0 commit comments