Hướng dẫn

Sunday, April 12, 2015

Mod giao diện đa nhiệm bunny style-eggster


Decompile Framework-res.apk
- mở res/value/dimens.xml
   đổi giá trị :
 
    <dimen name="thumbnail_height">160.0dip</dimen>
    <dimen name="thumbnail_width">240.0dip</dimen>

- save
- Recompile framework-res

Step 2

- Decompile SystemUI.apk
- chép file có sẵn vào đúng vị trí
- mở res/value/strings.xml
   thêm :

    <string name="service_background_processes">%1$s free</string>
    <string name="service_foreground_processes">%1$s used</string>
 
  trên dòng </Reseorces>

- mở res/value/colors.xml
   thêm :

    <color name="green">#ff00ff32</color>

   trên dòng </Reseorces>

- mở res/value/dimens.xml
   đổi giá trị :

    <dimen name="status_bar_recents_thumbnail_width">180.0dip</dimen>
    <dimen name="status_bar_recents_thumbnail_height">145.0dip</dimen>


- mở res/layout/status_bar_no_recent_ap.xml
   tìm và xóa :
   
       <TextView android:textSize="20.0dip" android:textColor="@*android:color/holo_blue_light" android:gravity="center_horizontal" android:layout_gravity="center" android:id="@id/recents_no_apps_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
   
      thay bằng :
   
       <TextView android:textSize="20.0dip" android:textColor="@color/green" android:gravity="center_horizontal" android:layout_gravity="center" android:id="@id/recents_no_apps_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableTop="@drawable/dhenz_i" android:text="@string/status_bar_no_recent_apps" />

- mở res/layout (layout-port)/status_bar_recent_item.xml
   tìm và xóa :

<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:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:scrollHorizontally="true" android:singleLine="true" android:layout_alignTop="@id/app_icon" android:layout_alignParentLeft="true" android:importantForAccessibility="no" />
        <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:foreground="@drawable/recents_thumbnail_fg" android:layout_toRightOf="@id/app_label" android:layout_alignParentTop="true">
     
   thay bằng :


<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="0.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
        <ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-40.0dip" android:layout_marginTop="40.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" android:layout_toRightOf="@id/anim_rec" />
     
- mở res/layout (layout-port)/status_bar_recent_panel.xml
   tìm và xóa :

<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"

   thay bằng :

<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/dhenz_recent_bg_port" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"

   tìm và xóa :

 <com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|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:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
            <LinearLayout android:orientation="vertical" 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.RecentsVerticalScrollView>
     
   thay bằng :

<com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|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:layout_marginRight="0.0dip" android:layout_marginBottom="31.0dip" android:stackFromBottom="true" android:divider="@null">
            <LinearLayout android:orientation="vertical" 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.RecentsVerticalScrollView>
        <LinearLayout android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:layout_marginBottom="1.0dip" android:stackFromBottom="true" android:layout_weight="1.0">
            <in.panic.xperience.aokpram android:layout_width="fill_parent" android:layout_height="30.0dip" />
        </LinearLayout>
     
- save
- Recompile SystemUI

Thanhf quả nè tèn ten ten ten
Nguồn:xda
Đc share bởi 1 Bạn trên fb


No comments:

Post a Comment