How to change the size of the keyboard on the Xiaomi smartphone: 5 proven ways

The keyboard on Xiaomi is one of the most commonly used interface elements, which depends on the convenience of typing and communication. Many users face the problem when the standard key size seems too small or, conversely, takes up half the screen, especially for owners of devices with large displays (for example, Redmi Note 12 Pro+ or POCO F5 Pro), where fingers constantly miss the buttons.

In this article, we’ll look at all the possible ways to resize the keyboard on Xiaomi smartphones, including hidden MIUI settings, third-party apps, and even modifying system files for advanced users. You’ll learn how to customize the keyboard for your hands β€” whether it’s a smaller one for compactness or a larger one for people with large fingers or vision problems. All the instructions are relevant for MIUI 12-14 firmware and models released after 2020.

Why a standard keyboard size can be uncomfortable

Smartphone manufacturers, including Xiaomi, often optimise the size of their keyboards to fit the average user, but the reality is that the needs vary widely:

  • πŸ‘† Too small buttons are a problem for people with large fingers or motor impairments, and 38% of smartphone users over 40 complain of discomfort when typing on a standard keyboard.
  • πŸ‘‡ Excessively large keyboard – takes up to 50% of the screen on compact models (such as Xiaomi 13 Mini), closing the content of chat rooms or browsers.
  • πŸ”„ Disregard for screen resolution on devices with non-standard aspect ratios (for example, 20:9 in Redmi Note) 11T Pro) the keys may be stretched or compressed disproportionately.
  • πŸ‘οΈ Vision problems – users with color blindness or nearsightedness require more contrasting and larger symbols.

MIUI also has a default Gboard (from Google) or Mi Keyboard, each with its own zoom algorithms, such as Gboard automatically adjusts to the screen size but sometimes does so too aggressively, and Mi Keyboard can ignore system-scale settings.

πŸ“Š What keyboard do you use on Xiaomi?
Gboard (from Google)
Mi Keyboard (branded)
SwiftKey
Another.
I don't know.

Method 1: Resize via keyboard settings (for Gboard and Mi Keyboard)

The easiest and safest method is to use built-in zoom options, which works for both the Gboard and the standard Mi Keyboard, but the paths to settings are slightly different.

For Gboard (Google Keyboard):

  1. Open any application where the keyboard appears (such as Messages or Notes).
  2. Touch the badge. βš™οΈ (gears) in the top panel of the keyboard to open the settings.
  3. Go to the section "Parameters" β†’ Size and style.
  4. Move the slider Keyboard height to the left (reduce) or right (increase).
  5. Click Ready to save the changes.

Note: Some versions of Gboard may call the option Size or Layout. If there is no slider, update the app to Google Play.

For Mi Keyboard:

  1. Run the keyboard in any text field.
  2. Press the badge. βš™οΈ (Or else. β†’ Settings).
  3. Select the size and layout β†’ Keyboard height.
  4. Adjust the slider and save the changes.

If your MIUI version does not have these points, then the keyboard uses system scale settings (see Method 2).

Update the keyboard in Google Play (for Gboard)

Check out the MIUI version (Settings β†’ About the phone)

Close all applications before changing settings

Take a screenshot of the current parameters (in case of reset)

-->

Method 2: System-scale text correction in MIUI

If the keyboard settings don't allow you to resize, you can use system scaling, which will affect all interface elements, including the fonts in the menu and apps, but often the keyboard also adjusts to new parameters.

  1. Open the Settings β†’ Screen.
  2. Select Text Size and Display (in some versions of MIUI, Screen Size).
  3. Move the text size or screen size slider to the desired value.
  4. Reboot your smartphone so that the changes take effect.

Important: This method may cause some applications (such as banking or gaming) to display incorrectly if they do not support dynamic scaling.

Parameter of scaleThe effect on the keyboardSide effects
Small (80%)Keys will decrease by 15-20%The menu text will be poorly readable
Standard (100%)No change.No.
Large (120%)The keys will increase by 20-25%Some apps will be cropped
Very large (150%)The keys will be 1.5 times larger.Interface distortion in 30% of applications

⚠️ Note: If the keyboard is not displayed correctly after zooming (e.g. buttons overlap), return the standard settings and use Method 3 or Method 4.

Method 3: Using third-party keyboards with flexible settings

If the built-in options don’t work, you can install an alternative keyboard from Google Play, some of which offer much more customization options, including fine-tuning the size, transparency, and even button location.

The best options for Xiaomi:

  • πŸ”§ SwiftKey – allows you to change the height of the keyboard in increments of 5%, supports themes and gestures.
  • 🎨 Chroom – Minimalist keyboard with adjustable size and color of buttons.
  • πŸ“± Fleksy - offers 3 pre-sizes (+ manual adjustment) and adaptive layout.
  • πŸ” AnySoftKeyboard – open source, full customization of row size and location.

How to install and configure:

  1. Download the selected keyboard from Google Play.
  2. Go to Settings β†’ System β†’ Language and input β†’ Virtual keyboard.
  3. Activate the new keyboard and set it by default.
  4. Open the keyboard settings (usually through the icon) βš™οΈ on its panel) and find the Size or Layout section.

πŸ’‘

Before installing a third-party keyboard, check for reviews about its compatibility with MIUI. Some applications (for example, SwiftKey) can conflict with Xiaomi's branded shells, causing lags.

Method 4: Manual editing of configuration files (for advanced ones)

If none of the above methods worked, you can manually edit the system files that display the keyboard, which requires root rights and is only suitable for advanced users.

Warning: Incorrect editing of system files can result in bootloop (a looped reboot) or loss of keyboard functionality.It is recommended to back up via TWRP before starting.

  1. Install a file manager with root support (such as Root Explorer or FX File Explorer).
  2. Go to /system/usr/keyboard/ or (for Gboard): /data/data/com.google.android.inputmethod.latin/
  3. Find a config.xml file or settings.db and open it in the text editor.
  4. Find the lines with the parameters: keyboard_height="X" or scale_factor="Y" where X and Y are numerical values (usually from 0.8 before 1.5).
  5. Change the values (for example, keyboard_height="1.2" magnify 20%) and save the file.
  6. Reboot your smartphone.

⚠️ Attention: After update MIUI All changes to system files will be reset. To avoid this, use Magisk modules (e.g., Magisk modules, MIUI Tweaks that allow you to fix customization.

What if the keyboard disappeared after editing the files?
If the keyboard stopped appearing, try: 1. Install another keyboard from Google Play (like Gboard) via your computer (using ADB: adb install gboard.apk). 2. Reset the keyboard application settings to Settings β†’ Applications β†’ Application Management β†’ [keyboard name] β†’ Storage β†’ Clear data. 3. Restore a backup through TWRP if it was created.

Method 5: Use of the ADB-team forced_resize

For users who don’t want root rights but are willing to work with ADB, there’s an alternative method of forcing the keyboard to resize via system flags.This works on most Xiaomi devices with MIUI 12+.

Tools required:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB (You can download from the official Android website).
  • πŸ“± Included debugging by USB on a smartphone (Settings) β†’ The phone. β†’ Version. MIUI β€” Press 7 times, then return to the Additional Settings β†’ For developers β†’ Debugging by USB).

Instructions:

  1. Connect your smartphone to your computer and confirm the debugging permission.
  2. Open the command line (CMD or Terminal and type: adb shell settings put global forced_resizeable_activity This command allows forced resizing for all applications, including the keyboard.
  3. Next, type: adb shell wm density where [value] is the desired pixel density (e.g., 440 to zoom in or 380 to zoom in). The standard value for most Xiaomi is 420.
  4. Reboot your smartphone: adb reboot

After rebooting, the keyboard (and other interface elements) will resize to match the new pixel density. To return it all back, repeat the command with the original value (for example, adb shell wm density 420).

πŸ’‘

ADB-commands temporarily change system settings. MIUI The values will return to the standard.

Frequent problems and their solutions

When changing the keyboard size to Xiaomi, users often encounter common errors, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
The keyboard does not change size after settingsCache applications or conflict topicsClear the keyboard cache in Settings β†’ Apps or change the theme of the design
The buttons overlap each other.Incorrect value of screen size or resolutionsReturn the standard scale settings to Settings β†’ Screen
The keyboard disappears after the rebootResetting temporary files or conflict with Magisk modulesReinstall the keyboard or disable recent modules in Magisk
Keyboard gestures don't work.Changed size without gesture supportUpdate the keyboard or use Gboard with Gesture option enabled

If neither method worked, the problem might be the firmware, which would help:

  • πŸ”„ Update MIUI last-minute.
  • πŸ“₯ Install custom firmware (e.g. xiaomi.eu or Pixel Experience) where keyboard settings are more flexible.
  • πŸ“§ Appeal to support Xiaomi with a description of the problem (attach screenshots of settings).
Can you change the keyboard size to Xiaomi without root rights?
Yes, 90% of the time, a built-in keyboard setting (Method 1) or system zoom (Method 2) is enough. Root is only required for manual file editing (Method 4).
Why did the MIUI update reset the keyboard size?
Updates often reset user settings, especially if they have been changed through ADB or system files. After the update, repeat the configuration again or use Magisk modules to fix the parameters.
Which keyboard is better for Xiaomi: Gboard or Mi Keyboard?
It depends on needs: Gboard β€” more customization, gesture support, integration with Google services. Mi Keyboard β€” better optimized for MIUI, less weight, but more functional in Cyrillic layouts. Both are suitable for resizing, but Gboard offers smoother adjustment.
Can you make the keyboard transparent and change its size at the same time?
Yes, but only on third-party keyboards (like SwiftKey or Chroom) and standard Gboard and Mi Keyboards have transparency and size set up separately, and not all combinations are supported.
Will resetting your phone’s settings affect the size of your keyboard?
Yes, a full reset (Settings β†’ Additional β†’ Restore and Reset) will return all settings to factory settings, including keyboard size. To avoid this, save settings to the cloud (for Gboard) or export configuration files (for advanced users).