Thursday, November 26, 2015

[Tips] Mastering Xperia Home Grid & Dock Icons Modding | Newbies Welcome

Hello folks, here's a new thread with a different idea, tips for mastering Modding Xperia Home Grid & Dock Icons, You may have seen my Xperia Launcher Mods, and i got a lot of requests for how to make it, there are guides for ready values, but not for the way ? or how can i know the right values? So in this guide i show you how .

Index :
  • Changing Rows & Related Cells .
  • Changing Columns & Related Cells .
  • Changing Dock Icons .

Info :
  • Xperia Launcher Comes With Ready Values For Different DPI, You Gonna Modify Your Default Screen DPI Values & " Values " folder .
  • You Must Know How To Decompile / Recompile / Sign .
  • You Must Know What's Your Device DPI, Because We Gonna Modify 2 Folders, "values-swyourdp" and " values " .
  • There Are 2 Ways to modify, Easy & Hard, Hard Below, Easy is to copy ready values from other "values-swdp" and replace it with yours .

Let's Start, With values & values-sw480 for example ( Xperia Z1 ) :
Changing Apptray Columns & Rows By 1
Let's see my default values in the following folder : res/values-sw480dp
  • dimens : apptray_cell_width : 112 dip | apptray_cell_height : 116dip
  • integers : apptray_grid_rows : 6 | apptray_grid_columns : 5 .

Now, We need to know what's the cell height & width for every row & column, Here's How :
  • Grid Rows : 6 / Cell Height : 116 => 116 / 6 = 19.3, it means for every row we gonna add, we must minus " 116 " with " 19.3 " .
  • Grid Columns : 5 / Cell Width : 112 ==> 112 / 5 = 22.4, it means for every column we gonna add, we must minus "112" with " 22.4" .

So, Here's An Example :
  • Rows : 7 , Columns 6 => Cell Height : 96.7, Cell Width : 89.6 .

Easy, right ? Make the same for Desktop Cells & Grid in integers & dimens files, in both "values" and " values-swyourdp " .

Changing Dock Icons, Let's Take XZ1 Again For Example, We Need To Modify The Same Files In The Same Folders ( values & values-swyoudp ) .
  • stage_grid_columns : 5
  • max_stage_items : 4
  • stage_cell_width : 96
  • stage_cell_height : 116
So, I want to make it 7 Dock Icons, What i'm gonna do ? the same as above, Here's How :
Cell Width : 96 / 5 = 19.2 | Cell Height : 116 / 5 = 23.2 | For Every Icon You need to minus it just like above, So it the values will be like this :
  • stage_grid_columns : 7
  • max_stage_items : 6
  • stage_cell_width : 57.6
  • stage_cell_height : 69.6
Smooth & Easy, All what you need is a calculator :silly:, I've minus it twice because I've added 2 icons .

Notes :
  • For Dock Icons, You Have To Modify " Stage Icon Size " & " Stage Text Size " .
  • For AppTray & Desktop, You Have To Modify " Text Size " for Apptray & Desktop .


via xda-developers http://ift.tt/1YwubMx

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

No comments:

Post a Comment