SHARE

By Default, the MIUI app notification count appears at the top right of the app icon, but we can change that with a few simple lines of code.

Goal: To change the app notification count location from the top right to the bottom right of the app icon

Requirements:

  • Use Miui 7
  • Tool for complie apk file (apktool or other)
  • Notepad ++
  • Knowledge for compile apk file and xml
  • A full backup of your current system

Steps:

  • Decompile MiuiHome.apk
  • Find icon_massage.xml on res/layout

you’ll find the script like this:

<?xml version="1.0" encoding="utf-8"?><TextView
android:textColor="@color/icon_message_text"
android:gravity="center" android:layout_gravity="center|right|top"
android:id="@id/icon_msg" android:visibility="invisible"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:maxWidth="@dimen/
icon_message_max_width" android:shadowColor="#ff000000" style="@style
/WorkspaceIconTitle.notification" xmlns:android="http://schemas.
android.com/apk/res/android" />

android:layout_gravity="center|right|top"

To make the bubble appear on the top left, change it to this:

android:layout_gravity="center|left|top"

To make the bubble appear on the bottom left, change it to this:

android:layout_gravity="center|left|bottom"

To make the bubble appear on the bottom right, change it to this:

android:layout_gravity="center|right|bottom"

  • Save, recompile and sign your apk
  • Push new MiuiHome.apk to your system

That’s it! Now your MIUI app notifications should appear at the bottom of the app icon.

Let us know in the comments if you have any issues with the procedure below.