Posted by : Derry Adrian Minggu, 01 Juni 2014

Di Kesempatan Kali ini ane bakalan share tuts Potato Clock.Apa itu Potato Clock?Potato Clock adalah Jam Di Statusbar :).Dari pada penasaran bentuk nya gi mana :v langsung liat aja.



Fitur :
  1. Ada 3 jenis clock yaitu normal clock.pussy clock dan word clock
  2. Bisa ubah posisi jam (kanan.kiri.tengah)
  3. Bisa ubah warna jam
  4. Liat sendiri :p

Bahan:
Smali
App Potato

Tutorial :

1.Decompile SystemUI.apk
2.Taro file smali yang tadi d download ke dalam folder systemUI
3.ke res/layout/statusbar.xml...buka itu
4.Sesudah kode
   xmlns:android="http://schemas.android.com/apk/res/android">

   tambahkan ini
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
                <com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
            </LinearLayout>

5. Sesudah kode
   <LinearLayout android:orientation="horizontal" android:id="@id/icons"       android:layout_width="fill_parent" android:layout_height="fill_parent">

tambahkan ini

<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

6.Sesudah kode

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />

tambahkan ini

<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

7.Save dan recompile
8.Instal jga app potato clock nya



Sumber :
http://forum.xda-developers.com/showthread.php?t=2672062




{ 1 komentar... read them below or add one }

Anda Pengunjung Ke

Diberdayakan oleh Blogger.

Yang Udah ane posting

Copyright © Oprekan Galaxy Young S5360 -Opreaker Samsung S5360- Powered by Blogger - Designed by Johanes Djogan