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.
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):
- Open any application where the keyboard appears (such as Messages or Notes).
- Touch the badge. βοΈ (gears) in the top panel of the keyboard to open the settings.
- Go to the section "Parameters" β Size and style.
- Move the slider Keyboard height to the left (reduce) or right (increase).
- 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:
- Run the keyboard in any text field.
- Press the badge. βοΈ (Or else. β Settings).
- Select the size and layout β Keyboard height.
- 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.
- Open the Settings β Screen.
- Select Text Size and Display (in some versions of MIUI, Screen Size).
- Move the text size or screen size slider to the desired value.
- 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 scale | The effect on the keyboard | Side 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:
- Download the selected keyboard from Google Play.
- Go to Settings β System β Language and input β Virtual keyboard.
- Activate the new keyboard and set it by default.
- 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.
- Install a file manager with root support (such as Root Explorer or FX File Explorer).
- Go to /system/usr/keyboard/ or (for Gboard): /data/data/com.google.android.inputmethod.latin/
- Find a config.xml file or settings.db and open it in the text editor.
- 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).
- Change the values (for example, keyboard_height="1.2" magnify 20%) and save the file.
- 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?
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:
- Connect your smartphone to your computer and confirm the debugging permission.
- 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.
- 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.
- 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 cause | Decision |
|---|---|---|
| The keyboard does not change size after settings | Cache applications or conflict topics | Clear the keyboard cache in Settings β Apps or change the theme of the design |
| The buttons overlap each other. | Incorrect value of screen size or resolutions | Return the standard scale settings to Settings β Screen |
| The keyboard disappears after the reboot | Resetting temporary files or conflict with Magisk modules | Reinstall the keyboard or disable recent modules in Magisk |
| Keyboard gestures don't work. | Changed size without gesture support | Update 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).