I have created a scrollview and inside I placed a LinearLayout containing an image a text and a button. Unfortunately when the app displays this layout the scrollview's starting position is in the middle, displaying the text instead of the top, displaying the image.
I have tried programatically the scrollto and it didnt work. I have also tried the requestfocus in the XML and it didn't work.
Any ideas?
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/sv" android:layout_width="fill_parent" android:layout_height="match_parent" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity" > <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/rregeneratingcream" /> <EditText android:id="@+id/etDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="textMultiLine" android:enabled="false" android:background="#00000000" /> <Button android:id="@+id/buttonRegeneration" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Next" /> </LinearLayout> </ScrollView>