The virtual keyboard on Android sometimes โ€œmovesโ€ to the top of the screen, covers text fields or interferes with working with applications. The problem is especially pressing for owners of smartphones with large screens or non-standard aspect ratios (for example, Samsung Galaxy Z Fold or Xiaomi Mix Fold). A fixed keyboard at the bottom of the screen is not only more convenient - it prevents accidental keystrokes and speeds up typing.

In this article we will look at all the ways to fix the keyboard: from standard Android settings to hidden functions of manufacturers. Please note: not all methods work on custom firmware (for example, LineageOS or ColorOS with deep modifications). If your smartphone was released before 2020, some options may be missing due to an outdated version of the system.

Before proceeding with the settings, check the Android version in Settings โ†’ About phone โ†’ Android version. On devices with Android 12 and later advanced keyboard control options are available, while on Android 10-11 some functions may be hidden. Also keep in mind that manufacturers (for example Huawei or Oppo) often override the standard settings with their proprietary shells.

๐Ÿ“Š What keyboard do you use on Android?
Gboard (Google)
Samsung Keyboard
SwiftKey
Other
I donโ€™t know

1. Standard pinning via keyboard settings

Most modern keyboards (including Gboard, Samsung Keyboard and SwiftKey) support a built-in pinning function at the bottom of the screen. This method works on 90% of devices without additional manipulation.

To activate the fix:

  1. Open any application with a text field (for example, Notes or Messages).
  2. Call the keyboard and find the icon "Pin" (usually the icon ๐Ÿ“ or ๐Ÿ”— in the top panel of the keyboard).
  3. Click on the icon - the keyboard will be fixed at the bottom of the screen. To unpin it, repeat the action.

If there is no icon, check the keyboard settings:

  1. Go to Settings โ†’ System โ†’ Language and input โ†’ Virtual keyboard.
  2. Select your keyboard (for example, Gboard).
  3. Find the section "Location and size" or "Advanced settings".
  4. Activate the option Fix the keyboard at the bottom or Fixed position.

Update the keyboard in Google Play|Check the screen resolution (there should be no scaling)|Disable navigation gestures if they conflict|Reboot your smartphone after changes-->

Important: On some devices (for example, Realme UI or MIUI 13), the option is hidden in the submenu Advanced settings โ†’ Keyboard behavior. If you donโ€™t find the item, try changing the keyboard theme to the standard one - sometimes custom skins disable additional functions.

2. Fixation through navigation gestures

On smartphones with gesture navigation (without "Back", "Home", "Recent" buttons) keyboard may "float" due to a conflict with system gestures. To fix this:

Method 1: Disable conflicting gestures

  1. Go to Settings โ†’ System โ†’ Gestures โ†’ System navigation.
  2. Select "2 buttons" or "3 buttons" instead of full-screen gestures.
  3. Restart the device and check fixing the keyboard.

Method 2: Set up the gesture zone

  1. In the same gesture settings, find Edge sensitivity or Zone swipes.
  2. Reduce the bottom gesture area so that it does not overlap the keyboard.
  3. Save changes and test text input.
Why does the keyboard move when you swipe up?

On Android 11+, the system automatically raises the keyboard, if detects a swipe from the bottom edge as an attempt to open the application panel. This is a bug of the shells from Xiaomi and Oppo, fixed only in MIUI 14 and ColorOS 13.

Exception: On Google Pixel with pure Android the problem is solved only by disabling gestures completely. OnePlus s OxygenOS 13+ It is recommended to update the firmware - in the latest versions an option has been added Ignore the keyboard in gestures.

3. Using the โ€œOne-handedโ€ mode

If the keyboard is not fixed using standard methods, try activating the mode "For one hand". It not only secures the keyboard, but also moves it to the left or right corner for convenient typing with your thumb.

How to enable:

  1. Open the keyboard in any application.
  2. Find the icon ๐Ÿ‘‹ (hand) or โš™๏ธ (gear) in the top panel.
  3. Select "One-handed mode" and indicate the side (left/right).
  4. The keyboard will lock in the selected position.

On some devices (for example, Samsung Galaxy S23) this mode is activated through:

  1. Settings โ†’ Additional functions โ†’ One hand.
  2. Select "Keyboard and screen" โ†’ enable the option.
๐Ÿ’ก

If one-handed mode does not fix the keyboard, try simultaneously holding the icon ๐Ÿ‘‹ and swiping down - this will force the panel to be fixed on some firmware.

On Xiaomi Redmi Note 12 and other devices with MIUI 14 the one-handed mode conflicts with the keyboard fixation. To fix it, disable the option Adaptive keyboard in the settings Gboard.

4. Specific settings for branded shells

Smartphone manufacturers often modify Android by adding unique options for the keyboard. Let's look at the features of popular brands:

Brand/Shell Path to settings Fixation features
Samsung One UI Settings โ†’ Additional functions โ†’ Keyboard Option Pin the keyboard hidden in Samsung Keyboard Settings โ†’ Layout and Input. Works only with a proprietary keyboard.
Xiaomi MIUI Settings โ†’ Advanced โ†’ Language and input โ†’ Keyboard On MIUI 13+ you need to disable Smooth input, otherwise the fixation is reset when you swipe.
Huawei EMUI Settings โ†’ System โ†’ Language and input โ†’ Huawei Keyboard Fixing works only in portrait orientation. In landscape, the keyboard is always โ€œfloatingโ€.
Oppo/Realme ColorOS Settings โ†’ Convenience โ†’ One-handed You need to enable One-handed mode for all applications, then the keyboard is fixed automatically.

For devices Google Pixel with pure Android:

  1. Open Gboard and go to Settings โ†’ Themes โ†’ Location.
  2. Select "Fixed" instead of "Floating".
  3. If there is no option, update Gboard to the latest version.
๐Ÿ’ก

On smartphones with curved screens (for example, Samsung Galaxy S23 Ultra), the keyboard lock may not work correctly due to software optimization for the edges of the display. In this case, only a third-party keyboard will help (see section 5).

5. settings

If standard methods do not work, install an alternative keyboard with built-in pinning. The best options:

  • ๐Ÿ”น SwiftKey โ€”supports forced pinning via Settings โ†’ Layout โ†’ Fixed position.
  • ๐Ÿ”น Chroom โ€”has an option Lock Keyboard Position in the section Appearance.
  • ๐Ÿ”น Fleksy โ€”fixes the keyboard automatically when the mode is activated Compact Mode.
  • ๐Ÿ”น AnySoftKeyboard โ€”allows you to set the coordinates of the keyboard position manually.

How to install and configure:

  1. Download the keyboard from Google Play (for example, SwiftKey).
  2. Activate it in Settings โ†’ System โ†’ Language and input โ†’ Virtual keyboard.
  3. Open the keyboard settings and find the section "Position" or "Size".
  4. Enable the locking option (in SwiftKey this Lock Keyboard in Place).

Warning: Some keyboards (for example, AI.typecontain advertising or collect data. Before installation, check permissions in Google Play and user reviews.

๐Ÿ’ก

If after installing a third-party keyboard it does not appear, go to Settings โ†’ Applications โ†’ Permissions โ†’ Default and reset the keyboard settings to default.

6. advanced)

If none of the methods worked, you can try changing the system settings manually. This method is only suitable for users with root access or an unlocked bootloader.

Instructions for devices with Android 10+:

  1. Install a file manager with root access (for example, Root Explorer).
  2. Go to path /data/data/com.android.inputmethod.latin/shared_prefs/.
  3. Find the file com.android.inputmethod.latin_preferences.xml and open it in a text editor.
  4. Add the line:
    <boolean name="keyboard_docked" value="true" />
  5. Save the file and reboot the device.

โš ๏ธ Attention: Incorrect editing of system files can lead to malfunctions of the keyboard or complete inoperability of the device. It is recommended to create a backup copy of the file before making changes.

For devices without root access. use ADB:

  1. Connect your smartphone to the PC and activate USB debugging in Settings โ†’ For developers.
  2. Run the command:
    adb shell settings put secure keyboard_docked 1
  3. Reboot the device.

This method does not work on all firmware. On Samsung and Xiaomi an additional command may be required:

adb shell am broadcast -a com.android.keyboard.action.SET_DOCKED --ez docked true

7. data-i="223">If software methods do not help, consider hardware alternatives:

If software methods don't help, consider hardware alternatives:

  • ๐ŸŽฎ Bluetooth keyboard - connects as an external device and does not depend on the position on the screen.
  • ๐Ÿ“ฑ Cases with keyboard (for example, for Samsung Galaxy Z Fold) - physically fixed position.
  • ๐Ÿ–ฅ๏ธ DeX mode (on Samsung) - converts a smartphone into a PC with a full keyboard.
  • ๐Ÿ”„ Wireless projection (for example, Miracast) - output the keyboard to an external screen.

To connect a Bluetooth keyboard:

  1. Activate Bluetooth on your smartphone.
  2. Turn on the keyboard and switch it to mode pairing.
  3. On your smartphone, select a device from the list of available ones.
  4. Confirm the connection (enter the PIN code if necessary).

โš ๏ธ Attention: On some devices (for example, Huawei Mate 50), when you connect an external keyboard, the virtual keyboard is automatically hidden. To return it, disable the option Hide the virtual keyboard when connecting a physical one in the language and input settings.

Common problems and their solutions

Let's look at the typical ones situations when the keyboard does not lock, and ways to eliminate them:

Problem Possible cause Solution
The keyboard moves when you swipe up Conflict with navigation gestures Disable full-screen gestures or reduce the swipe area
The fixing option is missing in the settings Outdated version of the keyboard or Android Update the keyboard and device firmware
The keyboard is fixed, but disappears when you rotate the screen Orientation lock in the application Disable Fixed orientation in the application settings
Fixing only works in some applications Application restrictions (for example, in games) Use the mode Force display in the keyboard settings

If the keyboard does not appear at all:

  1. Check if it is disabled in Settings โ†’ Applications.
  2. Clear the keyboard cache in Settings โ†’ Applications โ†’ [Your keyboard] โ†’ Memory.
  3. Install another keyboard (for example Gboard) and check its operation.

โš ๏ธ Attention: On some devices with MediaTek processors (for example Redmi 9A), resetting the keyboard settings can lead to its complete inoperability. In this case, only reinstalling the application will help.

FAQ: Answers to frequently asked questions

Is it possible to attach a keyboard to an Android tablet?

Yes, but the methods depend on the firmware. On Samsung Tab S use Settings โ†’ Additional functions โ†’ Keyboard โ†’ Fixed position. On other tablets (for example, Lenovo Tab) you may need a third-party keyboard. (for example, SwiftKey) with the option Lock Position.

On tablets with Android 12L/13 the keyboard is fixed in landscape orientation by default, but can โ€œfloatโ€ in portrait orientation. to fix, activate the mode Split screen โ€”the keyboard will lock automatically.

Why did the keyboard stop locking after updating Android?

This is a common problem after updating to Android 13/14. Manufacturers often reset keyboard settings to standard. Solutions:

  1. Update the keyboard in Google Play.
  2. Reset the keyboard in Settings โ†’ System โ†’ Language and input โ†’ [Your keyboard] โ†’ Reset settings.
  3. If this does not help, install the beta version of the keyboard (for example, Gboard Beta).

On Samsung after updating to One UI 5/6 you may need to reinstall the proprietary keyboard via Galaxy Store.

How to fix the keyboard in games (for example, in Genshin Impact or PUBG)?

In most games, the virtual keyboard is blocked to prevent cheating. Workarounds:

  • ๐ŸŽฎ Use an external Bluetooth keyboard.
  • ๐Ÿ“ฑ Activate developer mode and enable Force keyboard display (adb shell settings put secure show_ime_with_hard_keyboard 1).
  • ๐Ÿ–ฅ๏ธ Launch the game via BlueStacks (Android emulator on PC) - there the keyboard is fixed using standard means Windows.

Important: In some games (for example, Call of Duty Mobile), forced display of the keyboard may be considered as using cheats. You risk getting an account ban.

Is it possible to attach a keyboard to a smartphone with a cutout in the screen? (for example, on iPhone-shaped Android)?

Yes, but there may be nuances. On devices with a notch (for example, Oppo Reno or Vivo V25), the keyboard sometimes โ€œsticksโ€ to the notch, blocking some of the characters. Solutions:

  1. In the keyboard settings. enable Ignore cutouts (if available).
  2. Reduce keyboard size in Settings โ†’ Size and layout.
  3. Use mode Portrait orientation โ€”in landscape, the keyboard may overlap the notch.

On Realme GT Neo and similar models, disabling the option Optimization for cutouts in the screen settings will help.

How to return the default keyboard fixation after a factory reset?

After a factory reset, the keyboard returns to its default state. To restore the fixation:

  1. Update the keyboard via Google Play.
  2. Go to the keyboard settings and re-activate the option Pin to bottom.
  3. If the option is gone, change the keyboard theme to the standard one (custom themes can disable additional functions).

On Xiaomi after reset, you may need to re-link your account Mi to unlock all keyboard functions.