window soft input mode - Android onscreen button not visible with software keyboard -
i have sort of login fragment, on top of "back" button (a text view) , under scroll view text inputs. when click on 1 of them keyboard appears , shifts upwards. however, want button visible. how can achieve this?
i tried playing windowsoftinputmode didnt desired result.
<relativelayout android:id="@+id/backc" android:layout_width="match_parent" android:layout_height="wrap_content" > <textview android:id="@+id/backbutton" style="@style/backbuttonstyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centervertical="true" /> </relativelayout> <scrollview android:id="@+id/signupscroll" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/backc" > //stuff here </relativelayout> </scrollview>
i not use textview button, use .addtobackstack(null); accomplish this, way don't need visible. see here information on method: http://developer.android.com/reference/android/app/fragmenttransaction.html#addtobackstack%28java.lang.string%29
edit: if don't want rid of button, use "adjustpan", see here: http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft documentation.
Comments
Post a Comment