Just a look-alike of CyanogenMod 11 clock
I used my own code instead of CM codes since
its to hard for me to port it to 2.3.6 device
FEATURES :
Clock color - Color picker
Clock position -Left|Center|Right|Hide
Font - Bold|Condensed|Light|Light Italic|Normal
AM/PM style - Normal|Small|Gone
Date style - Normal|Small|Gone
Date format - 14 styles too many to
mentions|Custom JAVA format
BUGS? 404 NOT FOUND PM me if you found any bugs SCREENIES
INSTRUCTIONS :
Download needed files HERE
Download & install Potato Clock settings HERE
Extract the needed files.
Decompile your SystemUI.apk
Go to SystemUI.apk/smali then paste the smali in that folder
the smali directory will be
smali/com/potato/systemui/clocks/.SMALI FILES HERE
and the assets folder
SystemUI.apk/assets/.ttf files should be here
Go to res/layout/statusbar.xml
PHP Code:
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"
- This is for Left Clock
PHP Code:
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"
- This is for Right Clock
PHP Code:
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"
- This is for Center clock
Put the codes in their right position In GB devices here is the code
(Don't copy my whole statusbar.xml)
PHP Code:
com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
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"
com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="1.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true"
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"
ISSUES
Statusbar Force closed/Stop working?
CREDITS :
jika kurang jelas silahkan lihat original threathnya dibawah ini
terima kasih sudah berkunjung jgn lupa tingalkan jejak dikomentar but no spam no sara ok
LinearLayout
LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent"
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"
LinearLayout
LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent"
ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip"
com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip"
com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip"
ImageSwitcher
com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0"
TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true"
TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true"
com.android.systemui.statusbar.TickerView
LinearLayout
com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="0.0px" android:singleLine="true"
com.android.systemui.statusbar.StatusBarView
Try installing the app first then select your desired settings then reboot
- I already fixed this issue but just in-case I still post this issue.
AM/PM not working/Too long to changed
Go to Settings>Date & time>Check 24 hour then uncheck again
- I already fixed this issue but just in-case I still post this issue.
Your issues?
Post it here so others can help/know what to do
XPOSED MODULE?
I'm planning
PotatoInc
MARIOZAWA - The mastermind of this
pollube31 - 24/7 tester
@Jay_SEAN- 12/2 tester
CYANOGENMOD
Our Star Magic family
ngelu kang
BalasHapusEs tak ss ngunu nang grupe pean :v
Hapus