I found the RTL bug on default MIUI V5 applications, after working on default's miui programs like Messaging, Contacts, Notes, .... finally i found the bug where it comes from.
i found this style on "framework-miui-res.apk" file. finally i changed this style and all RTL problems are fixed already.
little explanation how to fix this issue on Messaging app.
the problem is come from where the miui developers did not defined the android layout gravity for text editing layouts, when you don't add layout gravity for item, it will stick to left for all items. now when you want type over right layout based languages, like Persian, Arabic, Hebrew, Urdu ..., it will stick to left and you cant edit the text, the courser will stick to left while you are typing from right. i hope understand what i mean.
now get back to title and there is a solution.
we need to edit all MIUI V5 apps and put the layout_gravity parameter on edit text layouts, but its required huge work and need too much free time.
but there is simple way to fix this issue:
i study an d checking the MIUI V5 apps , and find that all of those text layouts have common style and they referred to "V5.TextAppearance" style.
lets begin the tutorial:
1- De-compile the framework-miui-res.apk file.
2- open /res/values/styles.xml file via Notepad++
3- how to fix text edit layouts rtl problem , like Music player meta ID3 editor, Messaging app and phone.
do a search and find this style:
4- fix the styles:PHP Code:
add this below line through above style:
finally we have :
4- how to fix texts on search layout's rtl problem like Contacts search function, Notes search function, Music player search function5- save the "Styles.xml" file and close Notepad++ application.
find this line:
on this style you will see this parameter:PHP Code:
change the above parameter to below one:PHP Code:
finally we have:PHP Code:
6- compile "framework-miui-res.apk" file.
7- now transfer your edited "framework-miui-res.apk" into your phone.
Original Thread, Persian Language
Best Regards , Amestris Team