I'm trying to make a page in Android, that the keyboard is always display, even when the user is pressing the back button (in that case I would like the app to go back to the last page).
For example: The page that Facebook did when you are writing a post in there app.
Thanks!
Add android:windowSoftInputMode="stateAlwaysVisible"
to your activity in the AndroidManifest.xml
file:
<activity android:name=".MainActivity"
android:label="@string/app_name"
android:windowSoftInputMode="stateAlwaysVisible" />
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.