adjustPan not preventing keyboard from covering EditText
After doing a lot of searching apparently it's what I'm calling a bug. If you use the fullscreen tag (to remove the status bar from the activity) you can't use "adjustResize" without wrapping the activity in a ScrollView. Unfortunately for me I'm using a ListView which would create yet another problem. I'm sick of messing with it and will probably just abandon the fullscreen on that activity.
adjustPan cuts off bottom of EditText
Solution is to set a top&bot paddings
My example with editText:
<AutoCompleteTextView
android:id="@+id/editText_new_password"
android:layout_width="match_parent"
android:layout_height="@dimen/btn_editbox_height"
android:background="@drawable/edit_text_style"
android:gravity="center_vertical"
android:paddingEnd="@dimen/login_edit_box_pass_padding_right"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingStart="@dimen/edit_box_padding"
android:textSize="14sp" />
with paddings 12:
and naked paddings:
Keyboard overlapping issue on EditText with adjustpan not working
adjustResize
fails to work when you use a FullScreenActivity. One solution would be to contain the whole layout in a ScrollView and scroll it to position editText.getY() + editText.getMeasuredHeight()
when the editText gains focus.
Or, if you want a quick fix to the problem, have at look at this solution on a similar question here.
Related Topics
Is There Any Reason to Use the Support.V4 Library in Android
How to Pass Integer from One Activity to Another
Recognizing Multiple Keywords Using Pocketsphinx
Out of Memory Error with Bitmap
Why Do I Get "Unresolved Reference" Error for My View's Name/Id When I Type It in Kotlin
Eclipse Error "Adb Server Didn't Ack, Failed to Start Daemon"
How to Programmatically Turn Off Wifi on Android Device
Calling Startactivity() from Outside of an Activity
Locationsettingsrequest Dialog to Enable Gps - Onactivityresult() Skipped
How to Avoid Soft Keyboard Pushing Up My Layout
How to Record Phone Calls in Android
Create Blurry Transparent Background Effect
Why Is My Button Text Forced to All Caps on Lollipop
Referencing a String in a String Array Resource with Xml
Better Way to Format Currency Input Edittext