• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Footer comes up above the keyboard

levank707

Lurker
When I am pressing edit text and keyboard appears on screen, my footer is also comes up above the keyboard, I set android:windowSoftInputMode="adjustNothing", android:windowSoftInputMode="adjustNothing" and to activity in manifest, footer problem is fixxing with thad but then scroll is not scrolling down fully I am able to scroll only half of text. I also set android:windowSoftInputMode="adjustPan" but same, someone please I tried everything what I searched in internet but nothing was helpful for me. I lost 2 days on this. %%%


XML

<RelativeLayout 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" >

<androidx.core.widget.NestedScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/footer"
android:background="#0000ff"
android:fillViewport="true">

<EditText
android:id="@+id/texthere"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_vertical|center_horizontal"
android:text="test test test test test test test test test test
test test test test test test test test test test test test test
test test test test test test test test test test test test test"
android:textSize="35sp"></EditText>

</androidx.core.widget.NestedScrollView>

<RelativeLayout
android:id="@+id/footer"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:background="#ffff00"
android:layout_alignParentBottom="true">

<TextView
android:id="@+id/texthere2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="things in your footer here"
android:textSize="20sp" />

</RelativeLayout>
 
Back
Top Bottom