i have a simple Relative xml with One TextView And One EditText but when user touch the EditText and when keyboard comes up my Text view Goes Up and disappear.. how can i make it to always stay at Center?
here is my XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="20dp" tools:context="com.example.testtypecounter.MainActivity" tools:ignore="MergeRootFrame" > <EditText android:id="@+id/editText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:ems="10" > <requestFocus /> </EditText> <TextView android:id="@+id/CurrentView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="hjk" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="40sp" /> </RelativeLayout>