|
4 | 4 | xmlns:tools="http://schemas.android.com/tools">
|
5 | 5 |
|
6 | 6 | <data>
|
| 7 | + |
7 | 8 | <variable
|
8 | 9 | name="viewModel"
|
9 | 10 | type="com.whyranoid.presentation.myrun.MyRunViewModel" />
|
|
34 | 35 | <androidx.constraintlayout.widget.ConstraintLayout
|
35 | 36 | android:layout_width="match_parent"
|
36 | 37 | android:layout_height="0dp"
|
37 |
| - app:layout_constraintTop_toBottomOf="@id/tool_bar" |
38 |
| - app:layout_constraintBottom_toBottomOf="parent"> |
| 38 | + app:layout_constraintBottom_toBottomOf="parent" |
| 39 | + app:layout_constraintTop_toBottomOf="@id/tool_bar"> |
39 | 40 |
|
40 | 41 | <androidx.core.widget.NestedScrollView
|
41 | 42 | android:layout_width="match_parent"
|
42 | 43 | android:layout_height="match_parent"
|
43 |
| - app:layout_constraintTop_toTopOf="parent" |
44 |
| - app:layout_constraintStart_toStartOf="parent" |
| 44 | + app:layout_constraintBottom_toBottomOf="parent" |
45 | 45 | app:layout_constraintEnd_toEndOf="parent"
|
46 |
| - app:layout_constraintBottom_toBottomOf="parent"> |
| 46 | + app:layout_constraintStart_toStartOf="parent" |
| 47 | + app:layout_constraintTop_toTopOf="parent"> |
47 | 48 |
|
48 | 49 | <androidx.constraintlayout.widget.ConstraintLayout
|
49 | 50 | android:layout_width="match_parent"
|
|
87 | 88 | android:id="@+id/tv_month_indicator"
|
88 | 89 | android:layout_width="wrap_content"
|
89 | 90 | android:layout_height="wrap_content"
|
90 |
| - app:layout_constraintTop_toBottomOf="@id/iv_profile_image" |
91 |
| - app:layout_constraintStart_toStartOf="parent" |
92 | 91 | android:layout_marginStart="16dp"
|
93 | 92 | android:layout_marginTop="16dp"
|
94 | 93 | android:textAppearance="@style/MoGakRunText.Bold.Medium"
|
95 |
| - tools:text="11μ"/> |
| 94 | + app:layout_constraintStart_toStartOf="parent" |
| 95 | + app:layout_constraintTop_toBottomOf="@id/iv_profile_image" |
| 96 | + tools:text="11μ" /> |
96 | 97 |
|
97 | 98 | <com.kizitonwose.calendarview.CalendarView
|
98 | 99 | android:id="@+id/calendar_view"
|
99 | 100 | android:layout_width="0dp"
|
100 | 101 | android:layout_height="wrap_content"
|
101 | 102 | android:layout_marginHorizontal="16dp"
|
102 | 103 | android:layout_marginTop="20dp"
|
103 |
| - app:cv_orientation="horizontal" |
104 | 104 | app:cv_dayViewResource="@layout/item_calendar_day"
|
105 | 105 | app:cv_hasBoundaries="true"
|
106 |
| - app:cv_scrollMode="paged" |
| 106 | + app:cv_orientation="horizontal" |
107 | 107 | app:cv_outDateStyle="endOfGrid"
|
| 108 | + app:cv_scrollMode="paged" |
108 | 109 | app:layout_constraintEnd_toEndOf="parent"
|
109 | 110 | app:layout_constraintStart_toStartOf="parent"
|
110 | 111 | app:layout_constraintTop_toBottomOf="@id/tv_month_indicator" />
|
|
113 | 114 | android:id="@+id/tv_label_my_running_history"
|
114 | 115 | android:layout_width="wrap_content"
|
115 | 116 | android:layout_height="wrap_content"
|
| 117 | + android:layout_marginTop="16dp" |
116 | 118 | android:text="@string/my_run_label_my_running_history"
|
117 |
| - app:layout_constraintTop_toBottomOf="@id/calendar_view" |
118 | 119 | app:layout_constraintStart_toStartOf="@id/calendar_view"
|
119 |
| - android:layout_marginTop="16dp"/> |
| 120 | + app:layout_constraintTop_toBottomOf="@id/calendar_view" /> |
120 | 121 |
|
121 | 122 | <androidx.recyclerview.widget.RecyclerView
|
122 | 123 | android:id="@+id/rv_my_running_history"
|
123 | 124 | android:layout_width="0dp"
|
124 | 125 | android:layout_height="wrap_content"
|
125 | 126 | android:layout_marginHorizontal="16dp"
|
126 | 127 | android:layout_marginTop="12dp"
|
127 |
| - tools:listitem="@layout/item_running_history" |
| 128 | + android:nestedScrollingEnabled="false" |
| 129 | + android:orientation="vertical" |
| 130 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
128 | 131 | app:layout_constraintBottom_toBottomOf="parent"
|
129 | 132 | app:layout_constraintEnd_toEndOf="parent"
|
130 | 133 | app:layout_constraintStart_toStartOf="parent"
|
131 |
| - app:layout_constraintTop_toBottomOf="@id/tv_label_my_running_history" /> |
| 134 | + app:layout_constraintTop_toBottomOf="@id/tv_label_my_running_history" |
| 135 | + tools:listitem="@layout/item_running_history" /> |
132 | 136 |
|
133 | 137 | </androidx.constraintlayout.widget.ConstraintLayout>
|
134 | 138 |
|
|
0 commit comments