Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,606 Members 47,765 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][4.0/ICS/CM9][HDPI] Re-Layout Recents Apps UI+Animation Text

Tip us?
 
shevchovski
Old
(Last edited by shevchovski; 22nd June 2014 at 07:02 PM.)
#1  
shevchovski's Avatar
Member - OP
Thanks Meter 45
Posts: 85
Join Date: Oct 2013
Location: Toyamas - Banyuwangi
Default [GUIDE][4.0/ICS/CM9][HDPI] Re-Layout Recents Apps UI+Animation Text

Hey I'm Come Again
First, Thanks to Senior Member @Adi Aisiteru Reborn , Senior Member @evilisto and @wong_Anyar
Because i'm make this from modifying Guide three people on above
And Never forget it to
X-TREME TEAM INDONESIAN DEVELOPMENT

1.Decompile framework-res.apk
  • Go to res/values/dimens.xml
Code:
Select Code
    <dimen name="thumbnail_height">120.0dip</dimen>
    <dimen name="thumbnail_width">120.0dip</dimen>
Change it to

Code:
Select Code
    <dimen name="thumbnail_height">267.0dip</dimen>
    <dimen name="thumbnail_width">168.0dip</dimen>
SAVE.

2.Now Recompile your framework-res

3.Decompile SystemUI.apk
  • Go to res/layout/status_bar_no_recent_apps.xml Replace All with this

Code:
Select Code
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" 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="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
  • Go to res/layout-port/status_bar_recent_item.xml Replace All with this

Code:
Select Code
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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">
    <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
        <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:foreground="#00000000" android:layout_centerInParent="true">
            <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/thumbnail_width_port" android:layout_height="@dimen/thumbnail_height_port" />
        </FrameLayout>
		<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/top_margin_port" android:layout_marginLeft="66.0dip" 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" />
        <com.animation.textview android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_marginTop="@dimen/margin_top_text_port" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:id="@id/app_label" 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="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
        <com.animation.textview android:textSize="@dimen/status_bar_recents_app_description_text_size" android:layout_marginTop="@dimen/margin_top_text_port" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" 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:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
    </RelativeLayout>
</FrameLayout>
  • Go to res/layout-port/status_bar_recent_panel.xml Replace All with this

Code:
Select Code
<?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"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <FrameLayout android:id="@id/recents_bg_protect" android:background="#80000000" blurColor="#ff6b8cf0" 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:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" 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:visibility="invisible" 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/layout-land/status_bar_recent_item.xml Replace All with this

Code:
Select Code
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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">
    <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <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="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="#00000000" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
            <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/thumbnail_width_land" android:layout_height="@dimen/thumbnail_height_land" />
        </FrameLayout>
		<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/top_margin_land" android:layout_marginLeft="53.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="30.0dip" android:maxHeight="27.0dip" />
        <com.animation.textview android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_marginTop="@dimen/margin_top_text_land" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:id="@id/app_label" 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="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
        <com.animation.textview android:textSize="@dimen/status_bar_recents_app_description_text_size" android:layout_marginTop="@dimen/margin_top_text_land" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" 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:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
    </RelativeLayout>
</FrameLayout>
  • Go to res/layout-land/status_bar_recent_panel.xml Replace All with this

Code:
Select Code
<?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"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <FrameLayout android:id="@id/recents_bg_protect" android:background="#80000000" blurColor="#ff6b8cf0" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
        <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" 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="wrap_content" android:layout_height="fill_parent" />
        </com.android.systemui.recent.RecentsHorizontalScrollView>
    </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>
  • Go to res/values/dimens.xml add this line above </resources>

Code:
Select Code
    <dimen name="thumbnail_width_port">168.0dip</dimen>
    <dimen name="thumbnail_height_port">267.0dip</dimen>
    <dimen name="thumbnail_width_land">137.0dip</dimen>
    <dimen name="thumbnail_height_land">200.0dip</dimen>
    <dimen name="top_margin_port">360.0dip</dimen>
    <dimen name="top_margin_land">0.0dip</dimen>
    <dimen name="margin_top_text_port">63.0dip</dimen>
    <dimen name="margin_top_text_land">230.0dip</dimen>
So,Look like this

Code:
Select Code
    <dimen name="thumbnail_width_port">168.0dip</dimen>
    <dimen name="thumbnail_height_port">267.0dip</dimen>
    <dimen name="thumbnail_width_land">137.0dip</dimen>
    <dimen name="thumbnail_height_land">200.0dip</dimen>
    <dimen name="top_margin_port">360.0dip</dimen>
    <dimen name="top_margin_land">0.0dip</dimen>
    <dimen name="margin_top_text_port">63.0dip</dimen>
    <dimen name="margin_top_text_land">230.0dip</dimen>
</resources>
  • Go to res/values/bools.xml

Code:
Select Code
    <bool name="config_recents_thumbnail_image_fits_to_xy">false</bool>
Change it to

Code:
Select Code
    <bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
3.Download file on Attachment file and merge all

4.Recompile your SystemU

5.Now is Done !!

Horee horee horee
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-06-22-15-46-20.png
Views:	348
Size:	159.7 KB
ID:	2812124   Click image for larger version

Name:	Screenshot_2014-06-22-15-46-40.png
Views:	256
Size:	166.4 KB
ID:	2812125  
Attached Files
File Type: zip smali_text.zip - [Click for QR Code] (568.7 KB, 28 views)
The Following 2 Users Say Thank You to shevchovski For This Useful Post: [ Click to Expand ]
 
G.M.L
Old
#2  
G.M.L's Avatar
Senior Member
Thanks Meter 94
Posts: 484
Join Date: May 2013
Location: Thessaloniki
i get this errors when im going to recompile systemui
Attached Files
File Type: txt SystemUI.apk_???-06-24-2014_16-03.txt - [Click for QR Code] (2.1 KB, 8 views)
 
shevchovski
Old
#3  
shevchovski's Avatar
Member - OP
Thanks Meter 45
Posts: 85
Join Date: Oct 2013
Location: Toyamas - Banyuwangi
Quote:
Originally Posted by G.M.L View Post
i get this errors when im going to recompile systemui
What's your base ROM ? or maybe smali text animation not compatible with your ROM..
 
G.M.L
Old
#4  
G.M.L's Avatar
Senior Member
Thanks Meter 94
Posts: 484
Join Date: May 2013
Location: Thessaloniki
Quote:
Originally Posted by shevchovski View Post
What's your base ROM ? or maybe smali text animation not compatible with your ROM..
Cm9

G.M.L._V7
http://pasakalis.blogspot.gr
 
shevchovski
Old
(Last edited by shevchovski; 25th June 2014 at 07:22 PM.)
#5  
shevchovski's Avatar
Member - OP
Thanks Meter 45
Posts: 85
Join Date: Oct 2013
Location: Toyamas - Banyuwangi
Quote:
Originally Posted by G.M.L View Post
Yo bro

Go to res/layout-port/status_bar_recent_item.xml
Go to res/layout-land/status_bar_recent_item.xml

Change this

Code:
Select Code
        <com.animation.textview With <TextView
don't merge attachment file..
 
pietro18m
Old
#6  
Member
Thanks Meter 1
Posts: 84
Join Date: Jun 2011
It works on Paranoid 4.4.4 on my S3? Same values?
 
green world
Old
#7  
green world's Avatar
Junior Member
Thanks Meter 2
Posts: 13
Join Date: Apr 2014
Nice mbah

Tags
cm9, guide, ics, mod, systemui
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...