[MOD]change home screen grid size Miui Launcher - Redmi Note 2 Themes and Apps

backup your rom
for a 4x6 grid size
-First download this on phone :http://www.mediafire.com/download/12ge91h88llsa2b/com.miui.home.zip
-remove extension .zip,now you have com.miui.home
-open a file manager with root (ES Explorer) and copy paste at phone/device/system/media/theme/default
-check the permissions
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-Reboot,start take a 2/3 min
If you want more:4x6/5x6/5x7 working,I have not tested more
-Open com.miui.home.zip with Winrar, you have a folder theme_values.xml
-Open theme_values.xml with Notepad or other app https://notepad-plus-plus.org/fr/
-Changed both values in red
<dimen name="folder_preview_width">42.0dip</dimen>
<dimen name="folder_preview_height">42.0dip</dimen>
<integer name="config_cell_count_x">4</integer>
<integer name="config_cell_count_y">6</integer>
<dimen name="workspace_cell_height">82.000000dip</dimen>
<dimen name="workspace_cell_padding_bottom_min">10.000000dip</dimen>
<dimen name="icon_title_padding_bottom">1.000000dip</dimen>
<dimen name="workspace_cell_padding_top">8.000000dip</dimen>
<dimen name="workspace_padding_top">11.000000dip</dimen>
<dimen name="workspace_indicator_margin_bottom">84.000000dip</dimen>
<dimen name="hotseats_height">92.000000dip</dimen>
<dimen name="icon_message_max_width">55.000000dip</dimen>
<dimen name="workspace_cell_padding_bottom">102.000000dip</dimen>
-Save
-With winrar add to the archive the new theme_values.xml and rename it to com.miui.home.zip
-remove extension .zip,now you have com.miui.home
-open a file manager with root (ES Explorer) and copy paste at phone/device/system/media/theme/default
-check the permissions
-Reboot
Thx kuan for tips

puppetmaster22 said:
backup your rom
for a 4x6 grid size
-First download this on phone :http://www.mediafire.com/download/12ge91h88llsa2b/com.miui.home.zip
-remove extension .zip,now you have com.miui.home
-open a file manager with root (ES Explorer) and copy paste at phone/device/system/media/theme/default
-check the permissions
-Reboot,start take a 2/3 min
If you want more:4x6/5x6/5x7 working,I have not tested more
-Open com.miui.home.zip with Winrar, you have a folder theme_values.xml
-Open theme_values.xml with Notepad or other app https://notepad-plus-plus.org/fr/
-Changed both values in red
<dimen name="folder_preview_width">42.0dip</dimen>
<dimen name="folder_preview_height">42.0dip</dimen>
<integer name="config_cell_count_x">4</integer>
<integer name="config_cell_count_y">6</integer>
<dimen name="workspace_cell_height">82.000000dip</dimen>
<dimen name="workspace_cell_padding_bottom_min">10.000000dip</dimen>
<dimen name="icon_title_padding_bottom">1.000000dip</dimen>
<dimen name="workspace_cell_padding_top">8.000000dip</dimen>
<dimen name="workspace_padding_top">11.000000dip</dimen>
<dimen name="workspace_indicator_margin_bottom">84.000000dip</dimen>
<dimen name="hotseats_height">92.000000dip</dimen>
<dimen name="icon_message_max_width">55.000000dip</dimen>
<dimen name="workspace_cell_padding_bottom">102.000000dip</dimen>
-Save
-With winrar add to the archive the new theme_values.xml and rename it to com.miui.home.zip
-remove extension .zip,now you have com.miui.home
-open a file manager with root (ES Explorer) and copy paste at phone/device/system/media/theme/default
-check the permissions
-Reboot
Thx kuan for tips
Click to expand...
Click to collapse
awesome man

Good job
Enviado desde mi Redmi Note 2 mediante Tapatalk

Works like a charm man! The text is a bit too close to the icon tho, but it still looks good
Skickat från min Redmi Note 2 via Tapatalk

Thanks very useful.
Is there a way to change icon size?.

drzoom10 said:
Thanks very useful.
Is there a way to change icon size?.
Click to expand...
Click to collapse
With build.prop editor app
http://en.miui.com/forum.php?mod=viewthread&tid=104651&highlight=icon+size

[
Cool Thanks :good::good:

Thanks very useful~_~
来自我的 Redmi Note 2 上的 Tapatalk

hey thanks man!
this works on xiaomi.eu ROM 5.12.3

What was the dpi you used

xuleca said:
What was the dpi you used
Click to expand...
Click to collapse
@xuleca 400dpi

Worked perfekt with row 5x7 and 400 density
The only thing is, that you have to do make new folders and have to add widgets

Works like a charm dude.
If you set 400 dpi I suggest to increase bottom padding so icons aren't too close of the indicator (the dots that indicate the page)
<dimen name="workspace_cell_padding_bottom">130.000000dip</dimen>

thank you!

Hi, does it work on redmi note 3. Thankyou.

Xdieu said:
Hi, does it work on redmi note 3. Thankyou.
Click to expand...
Click to collapse
Maybye,make a backup before

this is working,thank you

äppler said:
Worked perfekt with row 5x7 and 400 density
The only thing is, that you have to do make new folders and have to add widgets
Click to expand...
Click to collapse
Any chance you could upload your home file?

Do you know from where to get Status toggles 4x4

Hi,
Is possible to send me the 5X7 file ready for flash, I try to create the file but don´t work.
[email protected]
Regards

Related

Location and name of apps list background?

Hi,
I'm currently creating a black theme for a 2.1 rom but i am totally struggling finding the PNG file for the apps list "all programs" background, currently it's a light shade of grey starting at the top shading down to black at the bottom but want to make this this totally black.
I have changed all the files i can find that resemble the background but it remains grey fading to black and maybe this is controlled by an xml file?.
I have looked in framework-res and com.htc.resources apks but cannot find the file to change this.
Can anyone help me with this please?
Thx.
welcome to the league of those who cannot find the menu background... we've all been searching for a long long time, the shining knight has yet to be found that can free us all from the curse of the dark in the back...
Lol, ok but some themes i've seen have a black background, maybe this is because it's the default for the that particular rom/theme.
after reading your first post again : are you talking about stock or sense roms? not sure about the stock launcher, it should be know what file it is for that. not for rosie though.
I'm themeing an expresso sense rom and the file i have found that resembles the background png is called common_panel_gradient.png, which is also found in some common system apk's.
Hitman37 said:
I'm themeing an expresso sense rom and the file i have found that resembles the background png is called common_panel_gradient.png, which is also found in some common system apk's.
Click to expand...
Click to collapse
have you tried editing it?
kendong2 said:
have you tried editing it?
Click to expand...
Click to collapse
Yes, i did a couple of system apk's as well but the programs background stays the same, sys apk's change to the new edit.
Hitman37 said:
Yes, i did a couple of system apk's as well but the programs background stays the same, sys apk's change to the new edit.
Click to expand...
Click to collapse
It's not a png, it's a xml in framework-res.apk. I'm not at my own pc right now, but I'm 99% sure it's in /res/values/colors.xml. I tried editing to a semiopaque once, but it made the icons have trails when scrolling.
EDIT: Forget it. Just downloaded the stuff needed, and it is not in framework-res.apk. It's in Rosie.apk. /res/values/colors.xml. Line 8
Code:
<color name="all_item_background">#ff000000</color>
tristan202 said:
It's not a png, it's a xml in framework-res.apk. I'm not at my own pc right now, but I'm 99% sure it's in /res/values/colors.xml. I tried editing to a semiopaque once, but it made the icons have trails when scrolling.
EDIT: Forget it. Just downloaded the stuff needed, and it is not in framework-res.apk. It's in Rosie.apk. /res/values/colors.xml. Line 8
Code:
<color name="all_item_background">#ff000000</color>
Click to expand...
Click to collapse
Ah thanks Tristan ,
i thought it was probably xml related but the question now is how do i edit this (ff000000) in line 8 to change it to my all black background and what hex would this be?
Do i need some java tools for editing the xml?
Thank you!
Hitman37 said:
Ah thanks Tristan ,
i thought it was probably xml related but the question now is how do i edit this (ff000000) in line 8 to change it to my all black background and what hex would this be?
Do i need some java tools for editing the xml?
Thank you!
Click to expand...
Click to collapse
You need to download apktool, and then extract Rosie with that. The way it's done is this:
Code:
apktool d Rosie.apk out
That will decompile it to the folder 'out', and make all xml files readable and editable. Then after editing you run this command:
Code:
apktool b out
That will rebuild the apk. All left to do is either resign it or copy the edited files to your original Rosie.apk
Thanks again!!
Two questions...
What editor do i need to edit the decompiled file, will notepad do it?
What do edit the file to in line8, to use my background PNG?
Thanks.
Hitman37 said:
Thanks again!!
Two questions...
What editor do i need to edit the decompiled file, will notepad do it?
What do edit the file to in line8, to use my background PNG?
Thanks.
Click to expand...
Click to collapse
Notepad will do just fine. I use Notepad++, a freeware great notepad replacement with code highlight. I am not sure if you can replace the background with a png. That's be kinda tricky. It will probably require some altering in the smali, and I'm not familiar with that. One thing you could try is edit another file instead. You need to edit bladelistview.xml in layout folder.
Edit this tag:
Code:
android:background="@color/all_item_background"
to this:
Code:
android:background="@drawable/NAME_OF_YOUR_PNG_WITHOUT_EXTENSION"
Remember to put you custom image in the drawable folder in Rosie. I am not sure if this will work, but it's definatly worth trying.
Ok great, i'll try your suggestions.
Thanks
Hmm no it doesn't work, still the same background, i also get some errors when decompiling and re-compiling rosie but i inserted the files directly into rosie anyway with winrar, still not working
Any other idea's?
Thanks.
I have a feeling there's an apk somewhere that controls the program launch/list that has this png inside but i cannot find it , i thought that it could be the Launcher.apk but it's totally missing from the apps folder
This is what the current background looks like
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And want to change it to this...

[Themers]MetaMorph Reform and How to properly make a MetaMorph for everyone's use

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What MetaMorph is
MetaMorph is a project designed to allow us to patch files within .jar and .apk files on the phone.
Initially MetaMorph was designed for themers but it was discovered through use that we could also use it for applying customer dex files, resource files, images, and xml files. Pretty much anything inside of the apk and jar can be replaced with MetaMorph, which makes it very versatile and useful, in addition to this we can now copy files to places on the phone or sdcard, and we can implement the use of scripts now!
Purpose for a Reform:
Usually MetaMorphs are made for a specific phone and rom. Instead of classifying them by a Phone model, we should be classifying them by the phone's Resolution (ldpi,mdpi,hdpi). Also, the rom name should be the name of the rom compatible with the theme (Cupcake,Donut,Eclair,Froyo).
Benefits:
-Instead of have multiple MetaMorph versions for different types of phones, we will have only 3 different Resolution sizes coving multiple phones and roms.
-By using the name of the specific rom, we know that the theme fits perfectly with no problems. Also any files not present will be skipped by MetaMorph, further perfecting any chance of errors.
-MetaMorph can now be available for multiple phones. They can now also enjoy the beautiful themes created by our talented themers.
Quick rules and standard procedures for your MetaMorph theme
1)Your MetaMorph theme.xml should be as specific as possible.
Sample:
Code:
<?xml version="1.0"?>
<!-- MetaMorph theme template XML -->
<!-- Enter the name of this theme -->
<themename>Vanilla Upgrade</themename>
<!-- Enter the version of this theme -->
<themeversion>1.0</themeversion>
<!-- Enter the name of the png with out the (.png) extention -->
<screenshot></screenshot>
<!-- Enter the person(s) involved in this theme -->
<author>RichieDaze</author>
<!-- Enter the web location of this theme -->
<authorweblink></authorweblink>
<!-- Enter the resolution compatible for this theme (ldpi,mdpi,hdpi) -->
<phone>MDPI</phone>
<!-- Enter the name of the Android OS name this theme is compatible with -->
<rom>FROYO</rom>
<!-- Enter a description of this theme -->
<themedescription></themedescription>
2)Your screen shot can be named anything, but Screenshot should be default.
3)The <phone> entry should display the phones resolution(ldpi,mdpi,hdpi).
4)The <rom> entry should display the name of the compatible rom for your theme(cupcake,donut,eclair,froyo).
5)You should not have any png's or folders you did not edit in your theme folder.
6)Add all your png and xml edits in there proper folder(s).
7)Remember which folders make your phone reboot and place them last on the theme.xml's list.
8)When posting your MetaMorph, you should enter something like: [MetaMorph-mdpi] Name of your theme for 2.2, so that other users know if they can apply it to there phones. Plus searching from a search engine can have better results when looking for a compatible theme for your phone.
Following these rules will make MetaMorph much more enjoyable for everyone...
MetaMorph Commands
These following commands will be clarified one by one
The cpy command Copies from a specified folder in this theme's folder to the path folder.
Code:
<item>etc.cpy</item>
<path>/system/etc/</path>
<description></description>
-The above code tells MetaMorth to copy the contents of etc from your theme to the path: /system/etc
The script command Runs scripts as SU from a specified folder in this theme's folder
Code:
<item>Scripts.script</item>
<path>reboot.sh</path>
<description></description>
-The above code tells MetaMorph to Run a script as SU from the Scripts folder in the theme's folder.
The Regular command replaces any file into a apk/jar.
Code:
<item>framework-res.apk</item>
<path>/system/framework</path>
description></description>
or
Code:
<item>services.jar</item>
<path>/system/framework</path>
description></description>
-The above code tells MetaMorth to copy the contents of the framework/services folder from your theme to the path: /system/framework
Basic file structure for a sub-theme
Lets say your doing a sub-theme for framework-res.apk.
Your folder woulld be called framework-res (without the extension)
The same goes for the folders inside framework-res, in it's proper order.
drawable-mdpi would be in a folder called res.
So here is the break down: framework-res/res/drawable-mdpi/
-Reserved for different phone/rom thread links...
-MetaMorph Theme template XML
-Locations of xml's or jar to change the text colors
So how is the MetaMorph coming for Community Hero Mix?
Any progress?
Binary100100 said:
So how is the MetaMorph coming for Community Hero Mix?
Any progress?
Click to expand...
Click to collapse
This progress is about 90% done. I have only the task of the Launcher. Since different roms use different launchers the task becomes a bit harder.

[GUIDE] How make themes to QQLauncher

Hi.
This is tutorial "how to make themes to QQLauncher". It's pretty easy
What you need:
- Android 1.5+ phone
- QQLauncher
- 7-Zip
- Notepad++
- Photoshop, GIMP or whatever you like for resizing pngs
-----------------------------------
1. First you need to install QQLauncher (like a normal app).
2. Then download theme from online gallery (follow menu button -> Theme -> Theme gallery -> choose one of themes, i.e. "复古印象"), but don't apply it!
3. Now connect your phone to computer and navigate to "sdcard/QQLauncher". You need to copy "log.log" file and theme (with strange chinesse name) from "theme" folder to your desktop.
4. Open your "log.log" file with Notepad++ and you'll see lines like these:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- in blue square there is app name
- in yellow app package name (like in "data/app")
- in red app activity name - we need this to name icon
5. Find icon which you want to add (if you need to resize it, there are recommended sizes <because QQLauncher doesn't support icon scalling>: for HDPI 86x86 to 90x90 and MDPI 53x53 to 65x65) and rename it to this "com.cih.gamecih2.gamecih" (you need to write all name in lowercase, otherwise it won't work!)
6. Open your theme file with 7-Zip and copy icon to "icons" folder.
7. If you want to have other dockbar background, you need to replace "dock_bg.png" file in "icons" folder.
8. If you want to have other app background for apps without definied icons, you need to replace "appbackground.png" file in "icons" folder.
9. Copy your theme file to "sdcard/QQLauncher/theme" and apply it in Theme gallery
----------------------------
If you have any questions or suggestions to this tutorial, just write me on PM
Amazing !! Thx a lot, i'll try this week end.
Thanks!
8.1 if you wanna change folder icon put image called folder.png
Okay, i want to theme the ChompSMS icon, so i just isntalled it, but in the log.log file, I cant even find chompsms, so what should i do. Ill attach my log.log file
Hmmm, I don't see it in your log file. Try to find apk file in "data/app" and then search for it in log
Nexus Prime - Tapatalk
@supetawesomedude you said you just installed it, you have to reboot after install to update log, so just reboot then browse your log
@supetawesomedude, just delete log.log file and then restart launcher, I will generate with these app you have got
Nexus Prime - Tapatalk
Thanks to both of you! Both methods advised have worked fine and my phone is even sexier
i made a ADW theme with 1050 icons http://i2theme.webs.com/
i have port my theme to this MIUI Launcher
download here --> http://www.sendspace.com/file/8cni4s
EDIT: add the right appbackground.png for my theme
Vipitus, am I blind? Where in the launcher.apk can I find the screen indicator(s)?
Cheers!
drawable-hdpi/walkerdot_(...).png
Nexus Prime - Tapatalk
Thanks man
Im using a mac . How do you convert it from a zip back to a document file ?
it restarts? :-s
i dont hav any task killer!
but this launcher seems to kill itself every now and then and .. restarts!
is it only me? :-s
i love this launcher! please help!
Not working for me
Anyone mind taking a stab at making a theme using the icons (with permission from teh OP) from here? http://forum.xda-developers.com/showthread.php?t=1225629
What the hell, I've added many icons to my own personal theme and I have correctly named, replaced, resized, compressed, and then I renamed the zip file to 圆润有爱 and then placed in the qqlauncher. then i try to apply it, and it gives my some kind of error in chinse. I have no idea what to do, ill attach my 圆润有爱.zip as a link to mediafire. http://www.mediafire.com/?693bt619sdg4iq9
You've choosen another theme you are working on NOW first?
So apply other theme, mount USB, put file in QQlauncher/theme
and then unmount USB, go to themes and apply the new one?
Or?
add the right appbackground.png for my theme
download here --> http://www.sendspace.com/file/8cni4s [1050 icons]
Hi guys, i have a strange problem on my gf phone with qqlauncher.
She has a sonyericsson x10 mini pro, and with QQL i cannot add widget bigger than 3 colums. If i try to add a 4x1 for explample, QQL says that i haven't enough space on home... But i can add 4 folders or icons.

[THEME][ICS][HDPI][3/23/12] ~ SHADES OF YELLOW ~ {no ics blue here-WIP}

Gentlemen...... Behold!
...SHADES OF YELLOW...
After much studying and learning, I have made this yellow theme for myself and decided to release it to others to share.
***THIS IS A WORK IN PROGRESS***
This is only tested on existz' aospX rom for HTC Desire HD/Inspire 4G. The icons and xml edits are all there though, so if you are adventurous go ahead and decompile and use em.
ALWAYS ALWAYS ALWAYS DO A NANDROID BACKUP!!! NO EXCUSES!
SCREENSHOTS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please remember, I am doing this theme for me and my wife's personal use, and am only sharing with the community because I feel that it should be shared. I also work 50+ hours a week, so I will work on this as much as I can.
Other colors will follow as well.
TO-DO:
-finish theming the System UI and Frameworks
-theme the Google Apps
-theme all system apps
-anything else blue, gotta go.
-make more colors. NEXT UP IS PURPLE (wife's request )
THANKS:
existz, lord clockan, zelendel, cwhitney, pfaffinator, nitroz, sonnysekhon, cstayton, agat63, memnoc, bichon, thddude, brut.all (for apktool), GOOGLE, adobe photoshop... Bacon.... lol and many others.
ENJOY!
(Please don't steal my work, use it but don't steal it and claim it for your own... Just give me cred is all )
DOWNLOADS
THE FILES:
framework-res
SystemUI
Instructions:
BACK YOUR PHONE THE EFF UP!!!!
Use adb to push the two files to your phone via USB:
1. adb remount
2. adb push framework-res.apk /system/framework
3. adb push SystemUI.apk /system/app
4. adb shell chmod 0644 /system/app/SystemUI.apk /system/framework/framework-res.apk
5. adb reboot
or
Use root explorer on phone (or another similar file explorer):
1. Get files to sd card
2. copy them to the system folder of device
3. change permissions to rw-r-r
4. move framework-res.apk to /system/framework and overwrite existing one
5. move SystemUI.apk to /system/app and overwrite existing one
6. reboot
any problems, let me know i will try to help.
THE ICONS:
Icons are called Token and I found them on Google... not mine. Just replaced each icon manually using the Nova launcher.
Token dark icons
THE WIDGET:
Widget is just Minimalistic Text widget found on the Google Play Store for free.
Pop this preference file in /sdcard/MinimalisticTextPreferences and restore it in settings, if you want the same widget:
Yellow ICS Clock
THE FONT:
The font in the Minimalistic Text widget is the ICS Android clock font. You will need to have it in your fonts folder (if you don't have one, just make one) and then in MT go to global settings and set the font folder to the one you made.
ICS Clock font
CHANGELOG
3/23/12: Initial Release.
Looking very nice. On an aokp rom for the mytouch4g so I doubt it would work but looking very nice
Sent from my MyTouch 4G using xda premium
So if I only push the framework and UI it will theme my status bar, keyboard, and such? Or do I have to install the icons too?
Sent from here using magic air wires.
Ya the icons are separate.
OK I am having second thoughts on sharing this right now... maybe I'll put this back up in the future but for now I am closing this thread.
Why close it?
I'm gonna try and see if this will work on CM9 on my sgs
Sent from my GT-I9000 using xda premium
Jason123420 said:
Why close it?
I'm gonna try and see if this will work on CM9 on my sgs
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
It won't work, too different...
Thread closed at OP request

[MIUI_V5 Bugfix][TUT] Fix RTL Bug on MIUI V5 Applications

Hi to All
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.
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.​i found this style on "framework-miui-res.apk" file. finally i changed this style and all RTL problems are fixed already.
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:
PHP:
<style name="V5.TextAppearance" parent="@*android:style/TextAppearance">
<item name="android:textSize">@dimen/v5_text_font_size_primary</item>
</style>
4- fix the styles:
add this below line through above style:
PHP:
<item name="android:gravity">start</item>
finally we have :
PHP:
<style name="V5.TextAppearance" parent="@*android:style/TextAppearance">
<item name="android:gravity">start</item>
<item name="android:textSize">@dimen/v5_text_font_size_primary</item>
</style
​4- how to fix texts on search layout's rtl problem like Contacts search function, Notes search function, Music player search function
find this line:
PHP:
<style name="V5.Widget.EditText" parent="@*android:style/Widget.EditText">
on this style you will see this parameter:
PHP:
<item name="android:gravity">left|center</item>
change the above parameter to below one:
PHP:
<item name="android:gravity">start|center</item>
finally we have:
PHP:
<style name="V5.Widget.EditText" parent="@*android:style/Widget.EditText">
<item name="android:textAppearance">@style/V5.TextAppearance.EditText</item>
<item name="android:gravity">start|center</item>
<item name="android:background">?v5_edit_text_bg</item>
<item name="android:singleLine">true</item>
</style>
5- save the "Styles.xml" file and close Notepad++ application.
6- compile "framework-miui-res.apk" file.
7- now transfer your edited "framework-miui-res.apk" into your phone.
8- enjoy!​
Original Thread, Persian Language
Best Regards , Amestris Team
How to fix RTL issue on Global search in home screen.
1- decompile QuickSearchBox.apk
2- open /res/layout/query_text_view.xml via notepad++
3- find this item:
Code:
android:gravity="left|center"
4- change above item to
Code:
android:gravity="start|center"
5- compile and move it into system/app folder.
​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
thread is updated. if you find any rtl bugs either please report me.
best regards.
M_J_Nazari said:
thread is updated. if you find any rtl bugs either please report me.
best regards.
Click to expand...
Click to collapse
Thanks!! What about SMS pop-up (the quick respond)?
SagiMedina said:
Thanks!! What about SMS pop-up (the quick respond)?
Click to expand...
Click to collapse
yes, its fixed too.

Categories

Resources