[Walkthrough] Miui Launcher Mods


BixBix78

Members
Nov 7, 2010
157
26
[size=+2]MIUI Launcher Mod Guide V1[/size]​


Here are a few minor tweaks I've made in the stock Miui Launcher2.

You will find a few example dl links I whipped up quickly @ the bottom of the post. Due to the fact that there are 15-20 variants I did not make them all. (I.E.WallHack_StockFont_No Dock)

This post is more of a how-to/DIY, not a weekly stop as I have limited Miui time and will not be able to properly maintain a thread. That being said I will attempt to update some Launchers on future builds based on my availability.

Sampson's sticky covers the wallhack and Bold Font mod, and details decomp/recomp process with apktool.

So, no need to reinvent the wheel. Please go here as it is a great starting point. Post #3 and #4 discuss the Wallhack and Font Mod.


miuiwaethericonscopy.png




[size=+2]Layout Mods 1 & 1a[/size]
(icon and screen bar reallignment)​

These mods realigns the icon spacing and screen bar. (aka Slide Bar in Froyo terms)

The gap between the first icon row and status bar will be reduced, and the screen bar will be relocated into the hotseat directly above the dock icons.

(Sorry for the poor screenshot. I always have my slide bar transparent)

There are 2 versions-1a is more suited for MIUI-Dev-Weather widget users as v1 places the widget a little to close to the status bar. V1 is better suited for the new Fancy Widget/Fancy Widget Pro.

Decompile Launcher2.

The Dimens.xml can be found after decompiling Launcher2.

Navigate to Launcher2/values/res/dimens.xml

Edit Dimens.xml to reflect below
Code:
<resources>
    <dimen name="title_texture_width">120.0px</dimen>
    <dimen name="button_bar_height">70.0dip</dimen>
    <dimen name="button_bar_height_portrait">70.0dip</dimen>
    <dimen name="slide_bar_height">40.0dip</dimen>
    <dimen name="slide_bar_margin_bottom">57.0dip</dimen>
    <dimen name="slide_bar_padding_bottom_for_workspace">8.799988dip</dimen>
    <dimen name="error_bar_height">35.0dip</dimen>
    <dimen name="error_bar_width_padding">-10.0dip</dimen>
    <dimen name="widget_box_height_inner">507.0px</dimen>
    <dimen name="widget_box_height">622.0px</dimen>
    <dimen name="status_bar_height">25.0dip</dimen>
    <dimen name="half_status_bar_height">12.0dip</dimen>
    <dimen name="workspace_cell_width">76.0dip</dimen>
    <dimen name="workspace_cell_height">86.0dip</dimen>
    <dimen name="workspace_celllayout_max_visiable_height">434.0dip</dimen>
    <dimen name="workspace_padding_top">15.0dip</dimen>
    <dimen name="workspace_padding_side">8.0dip</dimen>
    <dimen name="workspace_widget_height_addition">10.0dip</dimen>    
    <dimen name="workspace_folder_height_addition">10.0dip</dimen>
    <dimen name="workspace_folder_width_addition">12.0dip</dimen>
    <dimen name="workspace_folder_padding_top">0.0dip</dimen>
    <dimen name="icon_width_margin">1.0dip</dimen>
    <dimen name="icon_message_top_margin">2.5dip</dimen>
    <dimen name="icon_message_right_margin">11.0dip</dimen>
    <dimen name="album_project_height">80.0dip</dimen>
</resources>

Modified lines.

Note~Workspace_widget_height_addition for Miui-Dev-Weather users.
Code:
    <dimen name="slide_bar_margin_bottom">57.0dip</dimen>
    <dimen name="error_bar_height">35.0dip</dimen>
    <dimen name="workspace_padding_top">15.0dip</dimen>
    <dimen name="workspace_widget_height_addition">10.0dip</dimen> 
    (change the above DIP value to zero if you use Miui-Dev-Weather, otherwise the widget alligns too close to the status bar)
    <dimen name="workspace_folder_height_addition">10.0dip</dimen>
    <dimen name="workspace_folder_padding_top">0.0dip</dimen>

Edit lines, save and compile.

Extract updated resources and replace stock Launcher2 resources with your edited resources.

~If you have done smali edits for wallhack mod, extract modified classes.dex and add into stock Launcher2.

Add to a update.zip, Nandroid, cache, dalvik, flash.

If all went well you'll notice the screen bar will now be located inside your hotseat.
You'll also notice some icon layout modification. (the gap @ the top of screen will be smaller)

~I made this version specifically for suave icons as they are what generally I prefer.

If you're not happy with the mod and since you've came this far you might as well keep tweaking code until the mod fits your icons perfectly.

If the mod is not your cup of tea with your choosen icons, you can either
1. Nandroid. Gotta love them.
2. Re-edit the modified lines until the spacing suites your icons. (if your able to decompile)
3. Strap on the thinking cap, do some research, and get your machine set up for editing.


docklesshomecopy-1.png




[size=+2]Minimalist~Hotseat Removal Mod[/size]​

The next mod completely wipes out the hotseat.

It gives a very clean minimalistic look to the main homescreen if you're into text widgets (Simi-Clock/Folder, TypoClock, etc.)

The screen bar location is much lower as this mod completely removes the button bar. (aka~hotseat)

The location may bother some with numerous homescreens that frequently use the slide function. That being said, it is still present and fully functional.

Same process from above mod.

Decompile Launcher2.

Navigate to Launcher2/res/vaules/dimens.xml

Edit Dimens.xml to reflect below
Code:
<resources>
    <dimen name="title_texture_width">120.0px</dimen>
    <dimen name="button_bar_height">0.0dip</dimen>						
    <dimen name="button_bar_height_portrait">0.0dip</dimen>				
    <dimen name="slide_bar_height">20.0dip</dimen>
    <dimen name="slide_bar_margin_bottom">0.0dip</dimen>
    <dimen name="slide_bar_padding_bottom_for_workspace">0.0dip</dimen>
    <dimen name="error_bar_height">47.0dip</dimen>
    <dimen name="error_bar_width_padding">-10.0dip</dimen>
    <dimen name="widget_box_height_inner">507.0px</dimen>
    <dimen name="widget_box_height">622.0px</dimen>
    <dimen name="status_bar_height">25.0dip</dimen>
    <dimen name="half_status_bar_height">12.0dip</dimen>
    <dimen name="workspace_cell_width">76.0dip</dimen>
    <dimen name="workspace_cell_height">86.0dip</dimen>
    <dimen name="workspace_celllayout_max_visiable_height">504.0dip</dimen> 
    <dimen name="workspace_padding_top">29.0dip</dimen>
    <dimen name="workspace_padding_side">8.0dip</dimen>
    <dimen name="workspace_widget_height_addition">14.0dip</dimen>
    <dimen name="workspace_folder_height_addition">13.0dip</dimen>
    <dimen name="workspace_folder_width_addition">12.0dip</dimen>
    <dimen name="workspace_folder_padding_top">-7.0dip</dimen>
    <dimen name="icon_width_margin">1.0dip</dimen>
    <dimen name="icon_message_top_margin">2.5dip</dimen>
    <dimen name="icon_message_right_margin">11.0dip</dimen>
    <dimen name="album_project_height">80.0dip</dimen>
    <dimen name="lyric_line_extra_spacing">6.0dip</dimen>
    <dimen name="lyric_line_extra_spacing_neg">-6.0dip</dimen>
</resources>

Modified Lines
Code:
    <dimen name="button_bar_height">0.0dip</dimen>
    <dimen name="button_bar_height_portrait">0.0dip</dimen>
    <dimen name="slide_bar_height">20.0dip</dimen>
    <dimen name="slide_bar_margin_bottom">0.0dip</dimen>
    <dimen name="slide_bar_padding_bottom_for_workspace">0.0dip</dimen>    
    <dimen name="workspace_celllayout_max_visiable_height">504.0dip</dimen>
    <dimen name="workspace_folder_height_addition">13.0dip</dimen>

Downloads
Unsigned and old update.zip format
Launchers stemmed from GB rls

Nandroid, wipe cache/dalvik, flash.

WallHack_325.zip

WallHack_Bold_325.zip

WallHack_Bold_LayoutV1325.zip

WallHack_Bold_LayoutV1a_MiuiWeather_325.zip

WallHack_Bold_Minimalist(Dockless)_325.zip
 
Is there a way ito make the gap between the icons any smaller?
and it would be cool if someone could package a flashable zip for pepole who don't know how to do that. (I tried but I always get installion aborted)
 
Please Help

Can someone tell me how to decompile the launcher apk?...I want to resize the folder to full screen...so it´s like an appdrawer...maybe you can help me...or maybe do it for me :D
 
Anyone got an idea how to remove the hotseat for 1.7.22? The guide in 1st post didn't work for me. It seems that some of the changed values no longer exist in dimens.xml

Sent from my GT-I9100
 
Anyone got an idea how to remove the hotseat for 1.7.22? The guide in 1st post didn't work for me. It seems that some of the changed values no longer exist in dimens.xml

Sent from my GT-I9100

yup, I want it too.. someone please..?
 
They are great mods mate weel done.....

By any chance are we still not able to bring a 5 x 4 launcher.

This would be really cool i took a look at few XML files yesterday but im a bit of a noob when it comes to XML
 
I want to resize icon. So what file .xml and where line to resize icon. If anyone know this, please help me?