[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Diaz1999:
GUIDE FOR XPERIA Z2 RECENT APPS (CM11 ONLY ATM)

​

STEP 1

Copy your framework-res.apk from system/framework and SystemUI.apk from /system/app/ then place it in your apktool directory​

STEP 2

Open cmd in your apktool directory, type

apktool if framework-res.apk

and

apktool if SystemUI.apk

then

apktool d SystemUI.apk

STEP 3

Go to SystemUI\res\layout\

Open status_bar_recent_item.xml with Notepad++

Clear all and change to this

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:importantForAccessibility="no"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_horizontal" android:id="@id/recent_item" android:clipChildren="false" 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:id="@id/app_label" android:paddingTop="2.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:importantForAccessibility="no" android:textAlignment="viewStart" android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_alignParentStart="true" />
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentTop="true" android:layout_marginStart="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_toEndOf="@id/app_label">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
</FrameLayout>
<View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginTop="3.0dip" android:layout_below="@id/app_label" android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginEnd="0.0dip" android:layout_alignParentStart="true" />
<ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" 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_marginStart="@dimen/status_bar_recents_app_icon_left_margin" android:layout_below="@id/app_label" android:layout_alignStart="@id/app_label" />
<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_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/recents_callout_line" android:textAlignment="viewStart" android:layout_marginStart="@dimen/status_bar_recents_app_label_left_margin" android:layout_alignParentStart="true" />
</RelativeLayout>
</FrameLayout>

and save​

STEP 4

Go to SystemUI\res\layout\

Open status_bar_recent_panel.xml with Notepad++

Clear all and change to this

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:foreground="@drawable/bg_protect" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="start|bottom|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stackFromBottom="true" android:divider="@null" android:layout_marginEnd="0.0dip">
<LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:fitsSystemWindows="true" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsVerticalScrollView>
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="@dimen/status_bar_recents_app_icon_max_width" android:layout_height="@dimen/status_bar_recents_app_icon_max_height" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

and save​

STEP 5

Go to SystemUI\res\values\

Open dimens.xml with Notepad++

Go to this and edit

<dimen name="status_bar_recents_thumbnail_left_margin">[COLOR="Red"]20.0dip[/COLOR]</dimen>
<dimen name="status_bar_recents_text_description_padding">8.0dip</dimen>
<dimen name="status_bar_recents_app_label_width">88.0dip</dimen>
<dimen name="status_bar_recents_app_label_left_margin">[COLOR="red"]0.0dip[/COLOR]</dimen>
<dimen name="status_bar_recents_item_padding">0.0dip</dimen>
<dimen name="status_bar_recents_app_icon_translate_distance">35.0dip</dimen>
<dimen name="status_bar_recents_app_icon_left_margin">0.0dip</dimen>
<dimen name="status_bar_recents_app_icon_top_margin">[COLOR="red"]8.0dip[/COLOR]</dimen>

to this

<dimen name="status_bar_recents_thumbnail_left_margin">[COLOR="Green"]10.0dip[/COLOR]</dimen>
<dimen name="status_bar_recents_text_description_padding">8.0dip</dimen>
<dimen name="status_bar_recents_app_label_width">88.0dip</dimen>
<dimen name="status_bar_recents_app_label_left_margin">[COLOR="Green"]20.0dip[/COLOR]</dimen>
<dimen name="status_bar_recents_item_padding">0.0dip</dimen>
<dimen name="status_bar_recents_app_icon_translate_distance">35.0dip</dimen>
<dimen name="status_bar_recents_app_icon_left_margin">0.0dip</dimen>
<dimen name="status_bar_recents_app_icon_top_margin">[COLOR="Green"]10.0dip[/COLOR]</dimen>

and save​

STEP 6

Open cmd in your apktool directory, type

apktool b SystemUI al.apk

then open al.apk and SystemUI.apk with WinRAR, drag META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk, when it ask to compress click OK​

STEP 7

Open cmd in your apktool directory, type

zipalign -v 4 al.apk SystemUImod.apk

STEP 8

Move your SystemUImod.apk to your phone, rename to SystemUI.apk, move it to /system/app/ and change permission to rw-r--r--

Then reboot​