Skip to content

Commit 3a47363

Browse files
committed
fix running record comment
1 parent 1264613 commit 3a47363

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

features/feature_change_record/src/main/res/layout/change_record_fragment.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
app:layout_constraintHeight_max="200dp"
3737
app:layout_constraintStart_toStartOf="parent"
3838
app:layout_constraintTop_toTopOf="parent"
39-
tools:itemComment=""
39+
tools:itemComment="Comment"
4040
tools:itemDuration="5h 23m 3s"
4141
tools:itemName="Item"
4242
tools:itemTagName="Tag"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
<manifest package="com.example.util.simpletimetracker.feature_change_running_record" />
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.example.util.simpletimetracker.feature_change_running_record">
3+
4+
<application android:theme="@style/AppTheme" />
5+
</manifest>

features/feature_change_running_record/src/main/res/layout/change_running_record_fragment.xml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@
2828
android:layout_marginTop="8dp"
2929
android:layout_marginEnd="4dp"
3030
app:cardElevation="@dimen/record_type_card_elevation"
31-
app:itemComment=""
3231
app:itemTagColor="@color/white_alpha_60"
32+
app:layout_constrainedHeight="true"
3333
app:layout_constraintEnd_toStartOf="@id/btnChangeRunningRecordDelete"
34+
app:layout_constraintHeight_max="200dp"
3435
app:layout_constraintStart_toStartOf="parent"
3536
app:layout_constraintTop_toTopOf="parent"
3637
tools:itemColor="@color/red_800"
38+
tools:itemComment="Comment"
3739
tools:itemName="Change running record"
3840
tools:itemTagName="Tag" />
3941

@@ -197,26 +199,37 @@
197199

198200
</androidx.cardview.widget.CardView>
199201

200-
<com.google.android.material.textfield.TextInputLayout
201-
android:id="@+id/inputChangeRunningRecordComment"
202-
style="@style/ChangeItemInputField"
202+
<androidx.core.widget.NestedScrollView
203203
android:layout_width="match_parent"
204204
android:layout_height="0dp"
205-
android:layout_marginHorizontal="20dp"
206-
android:layout_marginTop="8dp"
207-
android:layout_marginBottom="8dp"
208205
app:layout_constraintBottom_toTopOf="@id/btnChangeRunningRecordSave"
209-
app:layout_constraintTop_toBottomOf="@id/fieldChangeRunningRecordType"
210-
app:layout_constraintVertical_bias="0">
206+
app:layout_constraintTop_toBottomOf="@id/fieldChangeRunningRecordType">
211207

212-
<com.google.android.material.textfield.TextInputEditText
213-
android:id="@+id/etChangeRunningRecordComment"
214-
style="@style/EditTextMultiLine"
208+
<androidx.appcompat.widget.LinearLayoutCompat
215209
android:layout_width="match_parent"
216210
android:layout_height="wrap_content"
217-
android:hint="@string/change_record_comment_hint" />
211+
android:orientation="vertical">
212+
213+
<com.google.android.material.textfield.TextInputLayout
214+
android:id="@+id/inputChangeRunningRecordComment"
215+
style="@style/ChangeItemInputField"
216+
android:layout_width="match_parent"
217+
android:layout_height="wrap_content"
218+
android:layout_marginHorizontal="20dp"
219+
android:layout_marginTop="8dp">
220+
221+
<com.google.android.material.textfield.TextInputEditText
222+
android:id="@+id/etChangeRunningRecordComment"
223+
style="@style/EditTextMultiLine"
224+
android:layout_width="match_parent"
225+
android:layout_height="wrap_content"
226+
android:hint="@string/change_record_comment_hint" />
227+
228+
</com.google.android.material.textfield.TextInputLayout>
229+
230+
</androidx.appcompat.widget.LinearLayoutCompat>
218231

219-
</com.google.android.material.textfield.TextInputLayout>
232+
</androidx.core.widget.NestedScrollView>
220233

221234
<androidx.recyclerview.widget.RecyclerView
222235
android:id="@+id/rvChangeRunningRecordType"

0 commit comments

Comments
 (0)