Hei Friends,
Here i am Trying to Share a Little Tutorial for Making a Customizable APP Tray and Dock Bar for Sony Xperia Homes..
HOW TO MAKE CUSTOMIZABLE APP TRAY ( 5 x 6 App Tray Explained)
1.Decompile Home.apk
2.Go To res\values\integers.xml And Find This Line
<integer name="apptray_grid_columns">4</integer>
<integer name="apptray_grid_rows">5</integer>
Change It To This
<integer name="apptray_grid_columns">5</integer>
<integer name="apptray_grid_rows">6</integer>
3.Go To res\values\dimens.xml And Find This Line
<dimen name="apptray_cell_width">75.0dip</dimen>
<dimen name="apptray_cell_height">110.0dip</dimen>
<dimen name="apptray_grid_height">500.0dip</dimen>
So Here Come The Calculations Part
I cant help in this you will have to do trial and error methodthat’s a bit of guesswork. If the original layout had 4 icons which together represent 100% and you
changed that to 5 icons, then the default size per icon has to shange from 25% to 20%. That’s roughly 20% reduced size (5% less is 1/5th part of 25%) so reduce the
original size by 20% and it should be about right. The rest is a bit tweaking to give the icons more or less space.
4.Go To res\values-sw360dp
Do The Same Editing As Done In res\values And Enter The Same Values
5.Save It And Re Compile Then Sign It... Enjoy..
HOW TO MAKE 7 APP DOCK
1.Decompile Home.apk
2.Go To res\values\integers.xml And Find This Line
<integer name="stage_grid_columns">5</integer>
<integer name="max_stage_items">4</integer>
Change It To This
<integer name="stage_grid_columns">7</integer>
<integer name="max_stage_items">6</integer>
3.Go To res\values sw-360dp\dimens.xml And Find This Line
<dimen name="stage_cell_width">72.0dip</dimen>
<dimen name="stage_cell_height">87.0dip</dimen>
These values may differ for every phone but they are for stock 4 app dock. We need to change values accordingly that can fit 6 apps.
so this is where the calculations come , widtth is 72 for 5 apps so how much it will be for 7. use approximate values and do trial and error method
4.Save It And Re Compile Then Sign It... Enjoy..
VALUES WHICH GO BEST WITH SP
res/values/dimens.xml
6 x 4 App Drawer
<dimen name="apptray_cell_width">88.0dip</dimen>
<dimen name="apptray_cell_height">80.0dip</dimen>
<dimen name="apptray_grid_height">490.0dip</dimen>
6 x 5 App Drawer
<dimen name="apptray_cell_width">69.0dip</dimen>
<dimen name="apptray_cell_height">85.0dip</dimen>
<dimen name="apptray_grid_height">520.0dip</dimen>
5 x 5 App Drawer
<dimen name="apptray_cell_width">69.0dip</dimen>
<dimen name="apptray_cell_height">90.0dip</dimen>
<dimen name="apptray_grid_height">480.0dip</dimen>
7 Dock Bar Icons
res/values/sw-360dp/dimens.xml
<dimen name="stage_cell_width">52.0dip</dimen>
<dimen name="stage_cell_height">58.0dip</dimen>
Enjoy Guys :good:
If u found this Thread helpful means please press the :good: Button for me...
Last edited: