It should be easy I know!!! I watched tutorial, searched for approx. 2 hours and tried like 15 different methods (maybe more) and still can't get it to work.
In my app when I focus/select EditText and keyboard pops out I can't scroll down to input other text
AndroidManifest.xml > activity set to android:windowSoftInputMode="adjustPan"
here is the layout>main.xml
Couple of things:
Make sure the ScrollView only has one child,
As already mentioned, make sure you have a closing tag
The following code worked for me...
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" > <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <!--I added more views here! --> </LinearLayout> </ScrollView>
Hope this helps.
------------------------------------------------------------------------------------------
Update from comments... Screenshot of when I copy and pasted your code (on a Samsung Galaxy S). Working!
You haven't witten </ScrollView>
at last, Just Add and Ya it is done.
In my case, I had an OnTouchListener on the ScrollView that returned true in the onTouch method. This broke scrolling. Changing it to return false fixed the problem.