How to allow softkeyaybord to cover only certain types?

My layout has the following structure:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ScrollView android:id="@+id/login_form" android:layout_width="match_parent" android:layout_height="match_parent" > .... </ScrollView> <ImageView android:layout_width="wrap_content" android:layout_height="90dp" android:layout_gravity="bottom" android:baselineAlignBottom="true" android:src="@drawable/logotyp" /> </LinearLayout> 

When the soft keyboard appears, the ImageView moves up and the ScrollView changes. I want ImagView to be closed by the soft keyboard and ScrollView still changing. Is it possible?

+4
source share
1 answer

I think the solution is to track elevation events and then set the ImageView visibility to View.GONE when the situation gets smaller.

0
source

Source: https://habr.com/ru/post/1481397/


All Articles