Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

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

$
0
0
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 :laugh:
And Never forget it to
X-TREME TEAM INDONESIAN DEVELOPMENT :fingers-crossed: :highfive:

1.Decompile framework-res.apk
  • Go to res/values/dimens.xml
Code:

    <dimen name="thumbnail_height">120.0dip</dimen>
    <dimen name="thumbnail_width">120.0dip</dimen>

Change it to

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:

<?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:

<?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:

<?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:

<?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:

<?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:

    <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:

    <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:

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

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 :D

Attached Thumbnails
Click image for larger version

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

Name:	Screenshot_2014-06-22-15-46-40.png
Views:	N/A
Size:	166.4 KB
ID:	2812125  
Attached Files
File Type: zip smali_text.zip - [Click for QR Code] (568.7 KB)

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>