[Android Software Development] Samer Diab:
For htc devices only Rsie+systemui tweaks

Rosie + Sytem Ui Tweaks​

First i wanted to teech you how to enable unlock animation one sese 4 and up roms .

What uou need is apktool <If your new to apktool use i bot peaches apktool> and one click signer.

No after you install framework files lets decompile rosie.apk with this code :

Apktool d rosie.apk Animrosie

After decompiling navigate to animrosie and go into :

animrosie\res\values\arrays.xml and open arrays with notepad++ or adobe dreamware

Now you will probably see this code :

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="app_sort">
<item>Alphabetical (A to Z)</item>
<item>Date (Most recent)</item>
<item>Date (oldest)</item>
</string-array>
<string-array name="default_scene_folder_title">
<item>Favorites</item>
</string-array>
<string-array name="default_scene_folder_title_id">
<item>nn_favorites</item>
</string-array>
<string-array name="default_scene_folder_title_local">
<item>Favorites</item>
</string-array>
<string-array name="default_scene_folder_title_id_local">
<item>default_scene_folder_title</item>
</string-array>
<string-array name="custom_pause_wallpapers">
<item>com.htc.android.WeatherLiveWallpaper.Weather</item>
<item>com.htc.android.weatherlivewallpaper.service.WeatherWallpaperService</item>
</string-array>
</resources>

I want you to change this code to this code :

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="app_sort">
<item>Alphabetical (A to Z)</item>
<item>Date (Most recent)</item>
<item>Date (oldest)</item>
</string-array>
<string-array name="default_scene_folder_title">
<item>Favorites</item>
</string-array>
<string-array name="default_scene_folder_title_id">
<item>nn_favorites</item>
</string-array>
<string-array name="default_scene_folder_title_local">
<item>Favorites</item>
</string-array>
<string-array name="default_scene_folder_title_id_local">
<item>default_scene_folder_title</item>
</string-array>
<string-array name="custom_pause_wallpapers">
<item>com.htc.android.WeatherLiveWallpaper.Weather</item>
<item>com.htc.android.weatherlivewallpaper.service.WeatherWallpaperService</item>
</string-array>
[COLOR="Red"] <string-array name="unlock_spin_markers">
<item>unlock_to_00</item>
<item>unlock_to_01</item>
<item>unlock_to_02</item>
<item>unlock_to_03</item>
<item>unlock_to_04</item>
<item>unlock_to_05</item>
<item>unlock_to_06</item>
</string-array>[/COLOR]
</resources>

Add the worlds in red

Now let us recompile with this code :

Apktool b animrosie animrosie.apk

Now if you had problems compiling rosie add this line to publick.xml same folder:

<public type="array" name="unlock_spin_markers" id="0x7f050006" />

Now copy anim rosie.apk to one click signed and sign it and its ready to be flashed or replaced in root browser

Now lets learn how to make rosie 4x5 or 5x5 appdrawer <That means all apps>

Decompile rosie.apk and navigate to com\res\valuse and open dimens.xml

Now Lets get ready to code .

Start searching for this :

app_icon_size_ext
You will find this
<dimen name="app_icon_size">[COLOR="Red"]60.0px[/COLOR]</dimen>
Now 40.0 px is my icon size If i need to make an 5x5 app drawer i will need to change it to [COLOR="Red"]40.0 px[/COLOR]
And for 4x5 rosie 49.0px<You should get the point>

Now save and exit.

Here comes the tricky part's

Now we need to change portrait mode you will need to go to this folder:

Values-norma-hdpi or in some cases valuse-portrat lw630 or valuse-normal-xhdpi ........

Now lets open that folder and search for the folloowing :

page_view_icon_cell_width
you will find this
<dimen name="page_view_icon_cell_width">[COLOR="Red"]140.0px[/COLOR]</dimen> in my case its 140.px yours might be 120 px I will explain in pic
[ATTACH]1804254._xfImport[/ATTACH]
Now i need to change that code to
<dimen name="page_view_icon_cell_width">[COLOR="Red"]126.0px[/COLOR]</dimen>
now you need to also search for this :
page_view_icon_cell_height
and you will find this
<dimen name="page_view_icon_cell_height">[COLOR="Red"]148.0px[/COLOR]</dimen> in my case
I will need to change it to
<dimen name="page_view_icon_cell_height">106.0px</dimen>

Now for landscape same thing but its in values-land ......... And diffrent valuses .

Now in valuse-Portrait .......... Open integres.xml file and search for the following :

<integer name="config_allAppsTabbedCellCountX">[COLOR="Red"]4[/COLOR]</integer>
<integer name="config_allAppsTabbedCellCountY">[COLOR="Red"]4[/COLOR]</integer>
Now Change them to these :
<integer name="config_allAppsTabbedCellCountX">[COLOR="Red"]5[/COLOR]</integer>
<integer name="config_allAppsTabbedCellCountY">[COLOR="Red"]5[/COLOR]</integer>
That will make 5x5 apps in drawer
Now same thing in land but diffrent values if you have 480x800 rsolution i suggest cellcount x 6 and cell count y to 3 .

And we are finished recompile rosie and sign and its ready to be flashed .

Rosie empty flashable zip .

Like my work ?Donate to me and help me expand:) or you can just hit the thanks button Thanks{Pleaze list donations on thread}​