From b8304e7441ca9136e74eea6bf1049e3b6f87e88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sun, 29 Sep 2019 22:06:51 +0200 Subject: [PATCH] [UI/Agenda] Fix event list truncated & update tools preview --- .../ui/dialogs/event/EventListDialog.java | 4 +- app/src/main/res/layout/dialog_event_list.xml | 76 +++++++++---------- .../res/layout/row_lesson_change_item.xml | 2 +- .../res/layout/row_teacher_absence_item.xml | 2 +- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventListDialog.java b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventListDialog.java index b4e7c6db..065eedda 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventListDialog.java +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventListDialog.java @@ -86,7 +86,7 @@ public class EventListDialog { private void actualShow(Date date, Time time, boolean noDefaultTimeWhenAdding) { dialog = new MaterialDialog.Builder(context) .title((time == null ? date.getFormattedString() : (lesson != null ? lesson.getSubjectLongName() : date.getFormattedString())+", "+time.getStringHM())) - .customView(R.layout.dialog_event_list, true) + .customView(R.layout.dialog_event_list, false) .neutralText(R.string.add) .positiveText(R.string.close) .autoDismiss(false) @@ -170,7 +170,7 @@ public class EventListDialog { examsView = dialogView.findViewById(R.id.eventListView); examsView.setHasFixedSize(false); - examsView.setNestedScrollingEnabled(false); + examsView.setNestedScrollingEnabled(true); examsView.setLayoutManager(new LinearLayoutManager(context)); CardView lessonChangeContainer = dialogView.findViewById(R.id.lessonChangeContainer); diff --git a/app/src/main/res/layout/dialog_event_list.xml b/app/src/main/res/layout/dialog_event_list.xml index 0e9f6120..f71208a8 100644 --- a/app/src/main/res/layout/dialog_event_list.xml +++ b/app/src/main/res/layout/dialog_event_list.xml @@ -1,25 +1,26 @@ - + android:layout_height="match_parent" + android:orientation="vertical"> @@ -28,7 +29,10 @@ layout="@layout/row_teacher_absence_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="5dp" + android:layout_marginTop="5dp" + android:layout_marginBottom="5dp" + android:layout_marginLeft="24dp" + android:layout_marginRight="24dp" android:visibility="gone" tools:visibility="visible" /> @@ -36,6 +40,8 @@ android:id="@+id/eventListLessonDetails" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginLeft="24dp" + android:layout_marginRight="24dp" android:orientation="vertical"> + + + + - - - - - - - + \ No newline at end of file diff --git a/app/src/main/res/layout/row_lesson_change_item.xml b/app/src/main/res/layout/row_lesson_change_item.xml index e5ca98f0..2ba7ea25 100644 --- a/app/src/main/res/layout/row_lesson_change_item.xml +++ b/app/src/main/res/layout/row_lesson_change_item.xml @@ -1,7 +1,7 @@