I have sort of a login fragment, on top of which is a "back" button (a text view) and under it is a scroll view with text inputs. When i click on one of them the keyboard appears and shifts everything upwards. However, i want the back button to be always visible. How can i achieve this?
I tried playing with windowSoftInputMode but didnt get the desired result.
<RelativeLayout
android:id="@+id/backC"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/backbutton"
style="@style/backbuttonstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
/>
</RelativeLayout>
<ScrollView
android:id="@+id/signupscroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/backC"
>
//stuff is here
</RelativeLayout>
</ScrollView>