简体   繁体   中英

Show Custom Toolbar while Scrolling Screen with Keyboard

Please read the question carefully before any action,

I am using the custom toolbar in my android application with one image, one button, and title.

Now below that, I have a full screen with edit texts and text views and buttons. While I am trying to fill data and keyboard is open at that time while I am scroll down my screen upside, it hides toolbar also, even toolbar is outside of scroll.

I have taken scrollbar inside the body view, not for the whole screen, but then also while I am scrolling it hides the toolbar.

Try this in manifest file it may work.

<activity
        android:name=".YourActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustResize" />

Use in your activity tag in Manifest file

<activity android:windowSoftInputMode="adjustResize"> </activity>

The activity's main window is always resized to make room for the soft keyboard on the screen.

Moreover, you can find the detail about it here official doc

Also, look at this question

Hope it will be helpful to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM