Keyboard Hides Edittext When Selected
I am facing an issue where the keyboard hides an editText when the editText is selected for the second time, the first time editText is selected the keyboard behaves as expected.
Solution 1:
Just remove the gravity on edittext, it seems to be a bug.
<EditText
android:id="@+id/transfer_amount"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="0.55"
android:background="@drawable/white_unrounded_edittext"
android:ems="10"
android:hint="@string/hint_amount"
android:maxLength="15"
android:textColor="@color/blue_light"
android:textSize="17dp"
android:inputType="numberDecimal"/>
Solution 2:
You can add android:windowSoftInputMode="adjustPan" in you manifest, into activity. I thing it is the best way
Post a Comment for "Keyboard Hides Edittext When Selected"