I placed a text box (EditText) and below it a HorizontalScrollMenuView with several ImageButton. The problem is that when clicking on the text box and opening the keyboard to write the ImageButton they move up and get smaller. And so they remain even after closing the keyboard. Here I leave the code. What is it and how can I solve it? Beforehand thank you very much.
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/linearLayout">
<EditText
android:id="@+id/TxtBuscar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="119dp"
android:layout_marginTop="25dp"
android:width="800px"
android:ems="10"
android:inputType="textPersonName"
android:hint="@string/buscar" />
<ImageButton
android:id="@+id/BtnBuscar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/TxtBuscar"
android:layout_toEndOf="@+id/TxtBuscar"
app:srcCompat="@android:drawable/ic_search_category_default"
android:background="#000000FF"
android:layout_marginTop="40px"
android:minWidth="60px"
android:minHeight="60px"/>
</LinearLayout>
<com.darwindeveloper.horizontalscrollmenulibrary.custom_views.HorizontalScrollMenuView
android:id="@+id/menu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="90px"
android:layout_marginLeft="50px"
android:layout_marginRight="50px"
app:backgroundMenuColor="#000000FF"
app:icon_height="240dp"
app:icon_width="160dp"
app:item_backgroundColor="#000000FF"
/>
You have to declare the android:windowSoftInputMode attribute in the header.
There are different options:
You have all the information at the bottom of this page