Rabu, 08 Mei 2013

cara membuat notifikasi kaya jellybean

Alat dan bahan
1.apktool
2.winrar/zip
3.notepad++
4.framework-res.apk

langkanya
1.decompile framework-res.apk
2.masuk folder res/layout/
3.trus cari  status_bar_latest_event_content.xml dan buka dengan notepad++
4.hapus semua code dan ganti dengan ini
   <?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <ImageView android:id="@id/icon" android:background="@drawable/status_bar_latest_event_panel" android:layout_width="65.0sp" android:layout_height="65.0sp" android:src="@drawable/arrow_down_float" android:scaleType="center" />
    <LinearLayout android:layout_gravity="center" android:orientation="vertical" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/title" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent" android:textColor="#ffb7b7b7" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/text" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
            <TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffb7b7b7" android:ellipsize="marquee" android:id="@id/notification_sim_indicator_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxWidth="95.0dip" android:singleLine="true" />
        </LinearLayout>
    </LinearLayout>
    <RelativeLayout android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:id="@id/notification_sim_indicator_bg" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="20.0dip" android:scaleType="fitXY" android:layout_alignRight="@id/notification_sim_indicator_text" android:layout_alignParentLeft="true" />
        <android.widget.DateTimeView android:textAppearance="@style/TextAppearance.StatusBar.EventContent" android:textStyle="bold" android:textColor="#ffb7b7b7" android:gravity="center" android:layout_gravity="center" android:id="@id/time" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
    </RelativeLayout>
</LinearLayout>

5.download soursenya disini!!
6.compile
7.move ke system
8.selesai

2 komentar:

  1. maaf gan. pny ane q gnti kyk gtu kox mlah status barnya sering fc ya?
    mhon bntuannya,,

    BalasHapus