Android: ScrollView not scrolling with keyboard out
Okay, apparently the ScrollView's android:layout_height
mustn't be set to wrap_content
. I set it to match_parent
and set the android:layout_above
to the button on the bottom of the page.
Don't ask me why, but this fixed the issue.
android scrollview not scrolling down after keyboard opens
I had same problem and the solutions is this:
My activity was in fullscreen
mode and scroll does not work in this mode this is a bug and we send a report to google.
Just look at your activity in manifest
if there is a fullscreen mode just remove it.
Android ScrollView doesn't scroll when the keyboard is up
The link that Flipbed provided is the answer to your solution. You don't need to implement your workaround if you simply add "adjustResize" to your activity in the manifest. The problem you were having before is that you were using adjustPan. Where adjustPan does not resize the window, it pans the view so that whatever has focus is never obscured by the soft keyboard. If you check out Google's documentation (see link below) it will make sense.
Example:
<activity android:name="YourActivity"
android:windowSoftInputMode="adjustResize" />
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
Scroll View is not working when keyboard is open
use this in ur manifest
android:windowSoftInputMode="adjustPan|stateAlwaysVisible"
Can not get ScrollView to scroll when soft keyboard is shown
Add android:windowSoftInputMode="adjustResize"
to the <activity>
tag in your AndroidManifest.xml. This will cause the screen to be resized to the space left over after the software keyboard is shown. As a result, you will be able to scroll, since the screen will not be covered by the keyboard in any way.
EDIT:
I have written a minimal example and tested it. Unless there is a huge misunderstanding, try this code and then figure out why yours doesn't work:
xml layout:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_height="2000dp"
android:layout_width="wrap_content"
android:gravity="top"
android:text="Scroll Down!"/>
<EditText
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:hint="Enter Text"
/>
</LinearLayout>
</ScrollView>
manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="15"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="MyActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
Related Topics
How Capture/Log API Calls (Function Calls) Made by Android App
How to Show Only Specific Part of Website in Android Webview
How to Set the Preview Image in Videoview Before Playing
Eclipse Compiles Successfully But Still Gives Semantic Errors
What Is the Simplest and Most Robust Way to Get the User'S Current Location on Android
Strange Outofmemory Issue While Loading an Image to a Bitmap Object
How to Enable/Disable Log Levels in Android
How to Avoid the Frame Layout Is Pushed Up When the Soft Keyboard Appears
How to Change Listview Height Dynamically in Android
Install_Failed_User_Restricted:Android Studio Using Redmi 4 Device
Android Application Icon Not Showing Up
Adb Error (Error: Protocol Fault (Couldn't Read Status): Invalid Argument)
How to Display HTML in Textview