简体   繁体   中英

How can I always display the keyboard in landscape mode?

How can I always display the virtual keyboard in landscape mode in startup of the activity? and this keyboard doesn't fill the entire screen so I can display some views above the keyboard. The shape should be like when you open the android web browser in landscape mode then go to an input field. The keyboard doesn't fill the entire screen.

editText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); should solve the problem

For which ever activity you want to display the keyboard only in landscape mode.

Try this in your manifest..

<activity android:screenOrientation="landscape" android:configChanges="orientation|keyboard" android:name="sActivity">

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