Wednesday, January 9, 2013

Modding Part II

Part II: modding
  1. 5 icon dock (or 6)
    • Go to TouchWiz30Launcher\res\layout-mdpi\ and open launcher.xml with your text editor.
      Find iconColumnCount="4" and replace 4 with 5 (or 6 if you want 6 icons)
      Save
    • Go to TouchWiz30Launcher\smali\com\sec\android\app\twlau ncher and open AppShortcutZone.smali with your text editor
      Find const/4 v8, 0x3 and replace 0x3 with 0x4 (or 0x5 if you want 6 icons)
      Find const/4 v6, 0x3 and replace 0x3 with 0x4 (or 0x5 if you want 6 icons)
      Save

  2. 5 column app drawer (5x4 or 5x5)
    • Open TouchWiz30Launcher\res\xml-mdpi\launcher_config.xml with your text editor.
      Find menuColumnCount="4" and change it to 5 (this is the number of columns)
      Find itemNumOfPage="16" and chnage it to 20 if you want 5x4 drawer, or 25 if you want 5x5. (this is the number of icons per page)
      Save
    • If you're doing 5x5, do the following. if you're doing 5x4 then skip this.
      Open TouchWiz30Launcher\res\values-mdpi\dimens.xml
      Find <dimen name="menu_item_height">92.0dip</dimen> and change it to 73.6dip (this is the height of the drawer element)
      Open \res\layout-mdpi\application_boxed.xml
      Find maxLines="2" and change it to 1 (this is the number of lines in the app name in the drawer)

  3. 5x5 icons home screen
    Note that widgets will look smaller.
    • Open TouchWiz30Launcher\res\layout-mdpi\workspace_screen.xml
      Find shortAxisCells="4" and change it to 5 (this is the number of columns in the home screen)
      Find cellWidth="80.0dip" and change it to 64.0dip (this is the width of the column, it equals 320 / number_of_columns)
      Find longAxisCells="4" and change it to 5 (this is the number lines of icons in the home screen)
      Find cellHeight="100.0dip" and change it to 80.0dip (this is the height of the line, it equals 400 / number_of_lines)
    • Open TouchWiz30Launcher\res\values-mdpi\styles.xml
      Find <item name="android:layout_marginBottom">4.0dip</item> and change it to 2.0dip

  4. Hide icon names in home screen
    • Open TouchWiz30Launcher\res\values-mdpi\styles.xml
      Find <item name="android:layout_marginBottom">4.0dip</item> (the value may be diffrent, so simply look for layout_marginBottom)
      This value depends on the cellHeight from the previous patch. it equals cellHeight - 57
      if you have a 4 line homescreen, then set it to 43
      if you're making a 5 line homescreen, then set it to 23

  5. Transparent app drawer background
    • Open TouchWiz30Launcher\res\values-mdpi\colors.xml
      Find <color name="menu_background">#ff000000</color> and change to #99000000
      Note: The first two digits define the transparency level. it can be anything between 00 and ff (in hexadecimal) with 00 being completely transparent and ff being completely opaque.
      The latter 6 digits define the color of the background in RGB code.

No comments:

Post a Comment