After playing around for 2 hours i narrowed it down to 2 items that affect it: 1. android:gravity set to 'right' on the EditText 2. android:background set to anything that is NOT 9-patch Since i know that 9-path drawables in mid-size give 27dp padding i tried to set the left padding, failed... right padding, and it worked! So i gave 1 padding to the style of all the EDitTexts and it worked. Seems like an android bug: if the EditTexts appear one after the other in seperate layouts inside a single scrollview and their currsor on the right (right gravity + EditText is right aligned + no background to give padding) then the system cannot, for some reason pan to to that EditText.
On Dec 1, 5:15 pm, poohtbear <eyaltg...@gmail.com> wrote: > Hi. > I've made a tester to reproduce the issue: > this is my layout: > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout > xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical" > android:background="@drawable/flow_background"> > <ImageView android:layout_width="fill_parent" > android:layout_height="wrap_content" android:src="@drawable/ > header" > android:scaleType="fitXY" /> > <TextView android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:paddingRight="5dp" > style="@style/info_screens_title_text" > android:id="@+id/title"/> > <View android:layout_width="fill_parent" > android:layout_height="@dimen/ > seperator_height" > android:background="@color/seperator_color" /> > <ScrollView android:layout_width="fill_parent" > android:layout_height="0dp" > android:layout_weight="1.0" > > <LinearLayout android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical" > android:id="@+id/root"> > </LinearLayout> > </ScrollView> > <View android:layout_width="fill_parent" > android:layout_height="@dimen/ > seperator_height" > android:background="@color/seperator_color" /> > <include layout="@layout/lower_button_compound" > android:id="@+id/booking_next_button" /> > </LinearLayout> > > under the scroll view root element (the LinearLayout) i add TextView > (sub title) and Linear Layout that contains 12 children all of which > are FrameLayout which is inflated from this xml: > <FrameLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > style="@style/round_rect_line_style" > > <TextView android:layout_width="wrap_content" > android:layout_height="fill_parent" > style="@style/text_style_in_coupound.left" > android:id="@+id/tv_lbl"/> > <EditText android:layout_width="wrap_content" > android:layout_height="fill_parent" > style="@style/text_style_in_coupound.right.edit_text" > android:id="@+id/edit_val" > android:imeOptions="actionNext" > android:maxLength="16"/> > </FrameLayout> > > i programatically inflate the previous layout and add it line after > line to create a single compound surrounded by round rectangle. > > if i try to open the keyboard on item 6 when the screen is NOT > scrolled at all i get no panning on my layout! the virtual keyboard > opens up and my screen remains as is :-( as far as i know the screen > should pan to my field. > I checked with both resize and pan options of the windows options and > in both the field is totaly ignored, the screen remain as is. > Any idea of why this happens ? is it the scrollView ? i can't > rememmber reading about scrollView issues with IME... > > Any help would be appreciated! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en