Skip to content

Commit

Permalink
android app: wrap application in NestedScrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Jan 25, 2025
1 parent 20adf03 commit 41fc013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class MainActivity : AppCompatActivity() {
view.layoutParams.height = value
view.requestLayout()
}
animator.duration = 250
animator.duration = 300
animator.interpolator = AccelerateDecelerateInterpolator()
animator.start()
}
Expand All @@ -235,7 +235,7 @@ class MainActivity : AppCompatActivity() {
if (value == 0)
view.visibility = View.GONE
}
animator.duration = 250
animator.duration = 300
animator.interpolator = AccelerateDecelerateInterpolator()
animator.start()
}
Expand Down
8 changes: 6 additions & 2 deletions android/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
<androidx.core.widget.NestedScrollView
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"
Expand All @@ -10,6 +10,9 @@
style="@style/Theme.MainActivity"
tools:context=".MainActivity"
tools:ignore="MissingConstraints" >
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/spacer"
Expand Down Expand Up @@ -283,8 +286,9 @@
app:layout_constraintEnd_toEndOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>

0 comments on commit 41fc013

Please sign in to comment.