[Samsung Galaxy Nexus] locomain:
hi there!

after making the sense 4 mod and a lot of requests for a tutorial here we go

(The Original Thread.. gets updates)

http://xdaforums.com/showthread.php?t=1599348

the reasons i placed this tutorial is because the mod is more populair then i thought

and i cant keep up the request and updates of some roms

so my request to you is.. if you make your own version

place it in this thread to share with everyone

http://xdaforums.com/showthread.php?t=1599348

and if you use this mod in one of your themes give me some credit :)

the mod needs 2 files

-SystemUI.apk

-Framework-res.apk

you need apktool 1.4.2 and 1.4.3

decompile with 1.4.2 and compile with 1.4.3

after compiling go to build/apk in your apktool folder and put the

res folder

resources.arsc

classes.dex

in the original apk to make this work!

first decompile systemui

then

go to res/layout-port

open

status_bar_recent_item

change the code to

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/recent_item" android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="170.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="@dimen/status_bar_recents_thumbnail_width_webaokp" android:layout_height="@dimen/status_bar_recents_thumbnail_height_webaokp" android:layout_marginTop="20.0dip" />
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="192.0dip" android:layout_height="wrap_content" android:layout_marginTop="310.0dip" android:layout_marginRight="5.0dip" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_below="@id/app_thumbnail" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<LinearLayout android:orientation="horizontal" android:paddingTop="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="200.0dip" android:layout_height="50.0dip" android:layout_marginTop="0.0dip" android:adjustViewBounds="true" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
</LinearLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</LinearLayout>

open

status_bar_recent_panel

change the code to

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="470.0dip" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
<FrameLayout android:id="@id/recents_bg_protect" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:visibility="gone" android:scrollbars="none" android:fadingEdge="vertical" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

go to res/values

open

dimens

make sure the your values are the same

<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_edge_ignore">5.0dip</dimen>
<dimen name="status_bar_recents_app_icon_max_width">48.0dip</dimen>
<dimen name="status_bar_recents_app_icon_max_height">48.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_width_webaokp">170.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height_webaokp">280.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_width">164.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height">145.0dip</dimen>
<dimen name="status_bar_recents_app_label_text_size">14.0dip</dimen>
<dimen name="status_bar_recents_app_description_text_size">14.0dip</dimen>
<dimen name="status_bar_recents_fading_edge_length">0.0dip</dimen>
<dimen name="status_bar_recents_right_glow_margin">100.0dip</dimen>
<dimen name="peek_window_y_offset">-12.0dip</dimen>
<dimen name="navigation_bar_size">@android:dimen/navigation_bar_height</dimen>
<dimen name="navigation_bar_deadzone_size">12.0dip</dimen>
<dimen name="notification_height">65.0dip</dimen>
<dimen name="status_bar_icon_size">@android:dimen/status_bar_icon_size</dimen>
<dimen name="status_bar_icon_drawing_size">18.0dip</dimen>
<item type="dimen" name="status_bar_icon_drawing_alpha">54.999996%</item>
<dimen name="status_bar_icon_padding">0.0dip</dimen>
<dimen name="notification_divider_height">1.0dip</dimen>
<dimen name="self_expand_velocity">2000.0dip</dimen>
<dimen name="self_collapse_velocity">2000.0dip</dimen>
<dimen name="fling_expand_min_velocity">200.0dip</dimen>
<dimen name="fling_collapse_min_velocity">200.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">200.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">2000.0dip</dimen>
<dimen name="collapse_accel">2000.0dip</dimen>
<dimen name="global_screenshot_bg_padding">20.0dip</dimen>
</resources>

go to res/drawable

open

status_bar_Recent_background(if you let this file alone your background will be transparent.. if you wish to use another background or the one in the attachments for the original Sense look change the code to this)

<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="1000" android:drawable="@drawable/nattekut" />
</animation-list>

then download this View attachment 1038252 and place it in your drawable-xhdpi folder

then go to res/layout

open

status_bar_no_recent_apps

change your code to

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="470.0dip" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>

now go to the values of your country

for example

values-en-rGB

open strings

and change the recent app string to this(in your own language)

<string name="status_bar_no_recent_apps">Recent apps</string>

now for the part i hate

go to

\smali\com\android\systemui\recent

open recentpanelview.smali

then search for

.line 433
iget-object v2, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;

sget-object v3, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;

invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

.line 434
iget-object v2, p1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;

invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V

then paste

this underneath

const/high16 v3, 0x41a0

invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setRotationY(F)V

save and compile

decompile framework

go to res/values/

and open dimens

make sure you have this values

<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="app_icon_size">48.0dip</dimen>
<dimen name="thumbnail_height">245.0dip</dimen>
<dimen name="thumbnail_width">170.0dip</dimen>
<item type="dimen" name="dialog_min_width_major">65.0%</item>
<item type="dimen" name="dialog_min_width_minor">94.99999%</item>
<dimen name="notification_large_icon_width">64.0dip</dimen>
<dimen name="notification_large_icon_height">64.0dip</dimen>
<dimen name="config_prefDialogWidth">320.0dip</dimen>
<dimen name="config_viewConfigurationTouchSlop">8.0dip</dimen>
<dimen name="toast_y_offset">64.0dip</dimen>
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="system_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
<dimen name="status_bar_content_number_size">48.0sp</dimen>
<dimen name="system_bar_icon_size">32.0dip</dimen>
<dimen name="status_bar_edge_ignore">5.0dip</dimen>
<dimen name="fastscroll_overlay_size">104.0dip</dimen>
<dimen name="fastscroll_thumb_width">64.0dip</dimen>
<dimen name="fastscroll_thumb_height">52.0dip</dimen>
<dimen name="min_xlarge_screen_width">800.0dip</dimen>
<dimen name="password_keyboard_key_height_alpha">56.0dip</dimen>
<dimen name="password_keyboard_key_height_numeric">56.0dip</dimen>
<dimen name="password_keyboard_spacebar_vertical_correction">4.0dip</dimen>
<dimen name="password_keyboard_horizontalGap">3.0dip</dimen>
<dimen name="password_keyboard_verticalGap">9.0dip</dimen>
<dimen name="keyguard_lockscreen_outerring_diameter">270.0dip</dimen>
<dimen name="multiwaveview_target_placement_radius">135.0dip</dimen>
<dimen name="multiwaveview_snap_margin">20.0dip</dimen>
<dimen name="multiwaveview_hit_radius">60.0dip</dimen>
<dimen name="preference_screen_side_margin">0.0dip</dimen>
<dimen name="preference_screen_side_margin_negative">0.0dip</dimen>
<dimen name="preference_screen_top_margin">0.0dip</dimen>
<dimen name="preference_screen_bottom_margin">0.0dip</dimen>
<dimen name="preference_widget_width">48.0dip</dimen>
<dimen name="preference_fragment_padding_bottom">0.0dip</dimen>
<dimen name="preference_fragment_padding_side">16.0dip</dimen>
<dimen name="preference_breadcrumb_paddingLeft">0.0dip</dimen>
<dimen name="preference_breadcrumb_paddingRight">0.0dip</dimen>
<dimen name="preference_icon_minWidth">0.0dip</dimen>
<dimen name="preference_screen_header_vertical_padding">0.0dip</dimen>
<dimen name="preference_screen_header_padding_side">16.0dip</dimen>
<dimen name="preference_item_padding_side">8.0dip</dimen>
<dimen name="preference_item_padding_inner">8.0dip</dimen>
<dimen name="preference_child_padding_side">16.0dip</dimen>
<dimen name="search_view_text_min_width">160.0dip</dimen>
<dimen name="search_view_preferred_width">320.0dip</dimen>
<dimen name="alert_dialog_title_height">64.0dip</dimen>
<dimen name="alert_dialog_button_bar_height">48.0dip</dimen>
<dimen name="action_bar_default_height">48.0dip</dimen>
<dimen name="action_bar_icon_vertical_padding">8.0dip</dimen>
<dimen name="action_bar_title_text_size">18.0dip</dimen>
<dimen name="action_bar_subtitle_text_size">14.0dip</dimen>
<dimen name="action_bar_subtitle_top_margin">-3.0dip</dimen>
<dimen name="action_bar_subtitle_bottom_margin">5.0dip</dimen>
<dimen name="keyguard_lockscreen_clock_font_size">80.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>
<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>
<dimen name="activity_chooser_popup_min_width">200.0dip</dimen>
<dimen name="default_gap">16.0dip</dimen>
<dimen name="dropdownitem_text_padding_left">8.0dip</dimen>
<dimen name="dropdownitem_text_padding_right">8.0dip</dimen>
<dimen name="dropdownitem_icon_width">32.0dip</dimen>
<dimen name="textview_error_popup_default_width">240.0dip</dimen>
<dimen name="volume_panel_top">80.0dip</dimen>
<dimen name="default_app_widget_padding_left">8.0dip</dimen>
<dimen name="default_app_widget_padding_top">8.0dip</dimen>
<dimen name="default_app_widget_padding_right">8.0dip</dimen>
<dimen name="default_app_widget_padding_bottom">8.0dip</dimen>
<dimen name="action_button_min_width">56.0dip</dimen>
<item type="dimen" name="APKTOOL_DUMMY_004a">false</item>
</resources>

save and compile

push it to your device and enjoy

heres a cwm package

you can use

http://dl.dropbox.com/u/63404537/LocoZipSense4-8 b34.zip

just put your systemui in the /system/app/

and put your framework-res in the /system/framework

i hope this was clear!

enjoy this mod!

i worked hard for it :P

if you like my work consider a small donation:D

this is still a little wip i want to make it more like the original sense

so if you want to join forces send me a private message