Android : Keyboard hides edittext inside scrollview

on Thursday, September 4, 2014



<ScrollView
android:id="@+id/scrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/btnAddRow"
android:layout_below="@id/llInventoryViewHeader"
android:isScrollContainer="true"
android:scrollbars="vertical" >

<LinearLayout
android:id="@+id/llDynamicView"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>


I am having scroll view inside which dynamically rows are being added. The problem i am facing is that if my view is having 10 rows then when i start typing it won't scroll upto end. For e.g. in case of 10 rows I am able to scroll up to 7 row and then other 3 rows are not visible and have to close the keyboard by pressing back and then i can add the value to rest 3 row.


I have added inputMode to adjustPan in my manifest for the activity and also added android:isScrollContainer="true" but still its not working.


Anyone having any idea how to resolve it.


0 comments:

Post a Comment