Solution found. Set "adjustPan" for the "android:windowSoftInputMode" parameter for the activity in the manifest.
Emanuele On 11 Ago, 16:09, EPecorari <[email protected]> wrote: > I have the following layout: > > <?xml version="1.0" encoding="utf-8"?> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > > <TextView android:id="@+id/title" android:text="@string/ > main_updateStatus" > android:textStyle="bold" android:padding="2dip" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentLeft="true" /> > > <TextView android:id="@+id/advanced" android:text="@string/ > link_advanced" > android:textStyle="bold" android:textSize="12sp" > android:padding="4dip" > android:clickable="true" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_toRightOf="@id/ > title" > android:textColor="@color/blue_link" /> > </RelativeLayout> > > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > <TextView android:id="@+id/photo" > android:text="@string/link_photo" > android:textStyle="bold" android:textSize="12sp" > android:padding="4dip" > android:clickable="true" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:textColor="@color/ > blue_link" /> > </RelativeLayout> > > <ScrollView android:layout_marginBottom="180dip" android:id="@+id/ > ScrollView01" > android:layout_height="wrap_content" > android:layout_width="fill_parent" > > > <LinearLayout > xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <EditText android:id="@+id/updateStatus" > android:padding="3dip" > android:scrollHorizontally="true" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > /> > > <TextView android:id="@+id/titleLabel" > android:text="@string/ > label_titleField" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:visibility="gone" /> > > <EditText android:id="@+id/titleField" > android:padding="3dip" > android:scrollHorizontally="true" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:visibility="gone" /> > > <RelativeLayout > xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > > <Button android:id="@+id/updateStatusButton" > android:text="@string/ > button_updateStatus" > android:layout_width="wrap_content" > android:layout_height="wrap_content" /> > > <Button android:id="@+id/removePhotoButton" > android:text="@string/ > button_removePhoto" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > > android:layout_toRightOf="@id/updateStatusButton" > android:visibility="gone" /> > </RelativeLayout> > > <ImageView android:id="@+id/my_image" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:scaleType="fitCenter" > android:layout_gravity="center_horizontal" /> > > <!-- > android:layout_marginTop="2px" > android:layout_marginBottom="2px" > --> > </LinearLayout> > > </ScrollView> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="-180dip" > > > <TextView android:id="@+id/history" android:text="@string/ > title_history" > android:textStyle="bold" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:background="#000000" > android:textColor="#FFFFFF" > /> > > <ListView android:id="@+id/myListView" > android:layout_width="fill_parent" > android:layout_height="wrap_content" /> > </LinearLayout> > > </LinearLayout> > > When I click on the EditText "@+id/updateStatus" of the ScrollView, > the keyboard appears on the screen of the device and the ScrollView is > hidden. I'd prefer to hide the ListView "@+id/myListView" at the end. > > Is it possible? Why that view is hidden? > > Thanks > Emanuele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

