How do use with coordinatorlayout
Opened this issue · 2 comments
dev-juyoung commented
Hi, saket,
First of all, thank you for providing me with good information. but, I have a little problem.
It's a problem when using FluidKeyboardResize with CoordinatorLayout.
How do I use FluidKeyboardResize with CoordinatorLayout?
please help me :(
dev-juyoung commented
You can check the problem by changing the activity_fluid_resize.xml
file in the sample project as follows.
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Sup world?"
tools:ignore="HardcodedText" />
</FrameLayout>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Sup world?" />
</FrameLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Entreco commented
I think the problem is the NestedScrollView, and not the CoordinatorLayout.
I'm using this inside a CoordinatorLayout without issues.