Membuat Recent app/ Multitasking Chrome Style


Azzvet Pineda | 05.26 |


Oke fertama yang harus dilakukan fastinya ente dah faham tentang compile decompile.kalo ga faham bisa cari di google. disini juga ada tapi ini fost fertama ane.belum semfat fosting banyak2
ok langsung saja

1. Decompile framework-res ente terus cari res/values/dimens.xml terus ganti dengan ini

    <dimen name="thumbnail_height">160.0dip</dimen>
    <dimen name="thumbnail_width">240.0dip</dimen>

2. recompile framework-res ente .

3.Decompile System UI ente cari     /res/values/bools.xml

ganti dengan 


   <bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>


4. Selanjutnya cari ini  /res/values/colors.xml

ganti dengan 


    <color name="status_bar_recents_app_label_color">#ff555555</color>


5. lanjut cari ini /res/values/drawables.xml

ganti dengan 


    <item type="drawable" name="status_bar_recents_background_solid">#ff0f0f0f</item>
    <item type="drawable" name="status_bar_recents_app_thumbnail_background">#ffe0e0e0</item>


6. lanjut maning nang /res/layout-port/status_bar_recent_item.xml

ganti dengan 


<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="15.0dip" android:paddingBottom="15.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <RelativeLayout android:layout_gravity="center_horizontal" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <FrameLayout android:id="@id/app_thumbnail" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:foreground="@drawable/nyandroid11" >
            <ImageView android:id="@id/app_thumbnail_image" android:layout_width="240.0dip" android:layout_height="160.0dip" />
        </FrameLayout>
        <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:paddingLeft="108.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="6.5dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="248.0dip" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_alignTop="@id/app_icon" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
        <View android:visibility="gone" 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="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_marginRight="0.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
        <ImageView android:visibility="gone" android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="0.0dip" android:maxHeight="0.0dip" android:layout_toRightOf="@id/app_label" />
        <TextView android:visibility="gone" android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/recents_callout_line" android:layout_alignParentLeft="true" />
    </RelativeLayout>
</FrameLayout>



7. lanjut maning nang /res/layout-land/status_bar_recent_item.xml

ganti karo


<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="15.0dip" android:paddingRight="15.0dip" 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:layout_width="wrap_content" android:layout_height="wrap_content">
        <FrameLayout android:id="@id/app_thumbnail" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:foreground="@drawable/nyandroid11" >
            <ImageView android:id="@id/app_thumbnail_image" android:layout_width="240.0dip" android:layout_height="160.0dip" />
        </FrameLayout>
        <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:paddingLeft="108.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="6.5dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="248.0dip" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_alignTop="@id/app_icon" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
        <View android:visibility="gone" 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="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_marginRight="0.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
        <ImageView android:visibility="gone" android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="0.0dip" android:maxHeight="0.0dip" android:layout_toRightOf="@id/app_label" />
        <TextView android:visibility="gone" android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/recents_callout_line" android:layout_alignParentLeft="true" />
    </RelativeLayout>
</FrameLayout>


8. lanjut nang /res/layout-port/status_bar_recent_panel.xml

ganti karo


        <com.android.systemui.recent.RecentsVerticalScrollView 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">


9. lanjut goleki /res/layout-land/status_bar_recent_panel.xml

ganti karo


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


10. lanjut goleki - res/drawable/nyandroid_anim.xml

hapus baris ik


- <item android:duration="80" android:drawable="@drawable/nyandroid11" />

nek wes downlod file iki terus di replace ke res/values/drawable-nodpi 

https://www.dropbox.com/s/mbndi42agzbxqy3/nyandroid11.rar

compile..jret.rampung!!

thx evilisto xda developers


0 komentar:

Posting Komentar