android - How to adjustPan only one view? -
i have scrolling background doesnt work correctly when software keyboard on screen, i've put android:windowsoftinputmode="adjustpan" in manifest.
this prevents scrolling background breaking down, prevents rest of screen resizing filling out input fields becomes anoying.
is there way apply android:windowsoftinputmode="adjustpan" on horizontalscrollview?
<horizontalscrollview android:id="@+id/scrollingbackground" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none"> <linearlayout android:layout_width="wrap_content" android:layout_height="match_parent"> <imageview android:id="@+id/bg_image" android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@drawable/background_loop" android:adjustviewbounds="true"/> <imageview android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@drawable/background_loop" android:adjustviewbounds="true"/> </linearlayout> </horizontalscrollview> <scrollview android:layout_width="match_parent" android:layout_height="match_parent"> //the input fields
i've put linearlayout @ bottom of scrollview , sized programmaticly 50% of height of screen. when use android:windowsoftinputmode="adjustpan" can still scroll down enough see elements in scrollview.
not cleanest solution imo, it'll now.
Comments
Post a Comment