Skip to content

Commit

Permalink
fix calendarlist pushing buttons out of the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 21, 2024
1 parent aaea501 commit 5ba4db2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
minSdkVersion 26
targetSdk 34
compileSdk 34
versionCode 6
versionName "3.1.0"
versionCode 7
versionName "3.1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
41 changes: 30 additions & 11 deletions app/src/main/res/layout/dialog_calendar.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_height="match_parent">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/linearLayout4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?attr/colorPrimaryContainer"
android:orientation="vertical">
android:orientation="vertical"
app:layout_constraintBottom_toTopOf="@+id/scrollView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed">

<TextView
android:id="@+id/calendar_dialog_title"
Expand All @@ -23,8 +30,14 @@
</LinearLayout>

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
android:id="@+id/scrollView2"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toTopOf="@+id/linearLayout5"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout4">

<LinearLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -80,9 +93,15 @@
</ScrollView>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/linearLayout5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scrollView2"
tools:visibility="visible">

<Button
Expand Down Expand Up @@ -129,4 +148,4 @@
</LinearLayout>


</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 5ba4db2

Please sign in to comment.