|
24 | 24 | android:layout_alignParentBottom="true" |
25 | 25 | > |
26 | 26 |
|
27 | | - <Button |
28 | | - android:id="@+id/review_mode_edit_button" |
29 | | - style="?attr/questionnaireEditButtonStyle" |
30 | | - android:layout_width="wrap_content" |
| 27 | + <LinearLayout |
| 28 | + android:id="@+id/questionnaire_title_layout" |
| 29 | + android:layout_width="match_parent" |
31 | 30 | android:layout_height="wrap_content" |
32 | | - android:layout_marginHorizontal="@dimen/action_button_margin_horizontal" |
33 | | - android:layout_marginVertical="@dimen/action_button_margin_vertical" |
34 | | - app:icon="@drawable/ic_outline_edit_24" |
| 31 | + android:orientation="horizontal" |
| 32 | + android:layout_marginHorizontal="@dimen/title_layout_margin_horizontal" |
| 33 | + app:layout_constraintStart_toStartOf="parent" |
35 | 34 | app:layout_constraintEnd_toEndOf="parent" |
36 | 35 | app:layout_constraintTop_toTopOf="parent" |
37 | | - /> |
| 36 | + > |
| 37 | + |
| 38 | + <TextView |
| 39 | + android:id="@+id/questionnaire_title" |
| 40 | + android:layout_width="0dp" |
| 41 | + android:layout_height="wrap_content" |
| 42 | + android:layout_weight="1" |
| 43 | + android:layout_marginEnd="@dimen/title_margin_end" |
| 44 | + style="?attr/questionnaireTitleStyle" |
| 45 | + /> |
| 46 | + |
| 47 | + <Button |
| 48 | + android:id="@+id/review_mode_edit_button" |
| 49 | + style="?attr/questionnaireEditButtonStyle" |
| 50 | + android:layout_width="wrap_content" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:layout_gravity="center_vertical" |
| 53 | + app:icon="@drawable/ic_outline_edit_24" |
| 54 | + /> |
| 55 | + |
| 56 | + </LinearLayout> |
38 | 57 |
|
39 | 58 | <com.google.android.material.progressindicator.LinearProgressIndicator |
40 | 59 | android:id="@+id/questionnaire_progress_indicator" |
|
44 | 63 | app:layout_constraintBottom_toTopOf="@id/questionnaire_edit_recycler_view" |
45 | 64 | app:layout_constraintEnd_toEndOf="parent" |
46 | 65 | app:layout_constraintStart_toStartOf="parent" |
47 | | - app:layout_constraintTop_toBottomOf="@+id/review_mode_edit_button" |
| 66 | + app:layout_constraintTop_toBottomOf="@+id/questionnaire_title_layout" |
48 | 67 | /> |
49 | 68 |
|
50 | 69 | <androidx.recyclerview.widget.RecyclerView |
|
62 | 81 | android:layout_height="0dp" |
63 | 82 | android:scrollbars="vertical" |
64 | 83 | app:layout_constraintBottom_toTopOf="@+id/bottom_nav_container_frame" |
65 | | - app:layout_constraintTop_toBottomOf="@+id/review_mode_edit_button" |
| 84 | + app:layout_constraintTop_toBottomOf="@+id/questionnaire_title_layout" |
66 | 85 | /> |
67 | 86 |
|
68 | 87 | <FrameLayout |
|
0 commit comments