forked from github/szkolny
[UI/Agenda] Fix lesson change list truncated
This commit is contained in:
parent
9a3ab838b7
commit
d1164c8acd
@ -42,7 +42,7 @@ public class LessonChangeDialog {
|
||||
this.app = _app;
|
||||
dialog = new MaterialDialog.Builder(context)
|
||||
.title(date.getFormattedString())
|
||||
.customView(R.layout.dialog_lesson_change_list, true)
|
||||
.customView(R.layout.dialog_lesson_change_list, false)
|
||||
.positiveText(R.string.close)
|
||||
.autoDismiss(false)
|
||||
.onPositive((dialog, which) -> dialog.dismiss())
|
||||
@ -53,8 +53,7 @@ public class LessonChangeDialog {
|
||||
if (b == null)
|
||||
return;
|
||||
|
||||
b.lessonChangeView.setHasFixedSize(false);
|
||||
b.lessonChangeView.setNestedScrollingEnabled(false);
|
||||
b.lessonChangeView.setHasFixedSize(true);
|
||||
b.lessonChangeView.setLayoutManager(new LinearLayoutManager(context));
|
||||
|
||||
app.db.lessonDao().getAllByDate(profileId, date, Time.getNow()).observe((LifecycleOwner) context, lessons -> {
|
||||
|
@ -1,14 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/lessonChangeView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:listitem="@layout/row_timetable_item" />
|
||||
</LinearLayout>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/lessonChangeView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingLeft="24dp"
|
||||
android:paddingRight="24dp"
|
||||
android:clipToPadding="false"
|
||||
tools:listitem="@layout/row_timetable_item" />
|
||||
</layout>
|
Loading…
Reference in New Issue
Block a user