Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,459 Members 37,838 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][GUIDE][APR 17] Potato Clock Mods FINAL VERSION

Tip us?
 
mariozawa
Old
(Last edited by mariozawa; 22nd April 2014 at 12:51 PM.) Reason: Final Version
#1  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Default [MOD][GUIDE][APR 17] Potato Clock Mods FINAL VERSION

WHAT IS THIS?
Just a Potato clock

FEATURES
(COLOR HINTS)
NEW FEATURE
REMOVED
ORIGINAL FEATURE
VERSION

FINAL VERSION
Time-changed animation

Potato Clock v2.2
Custom Clock format -
Make your own clock format

Potato Clock v2.1
Word Clock - Just time in words
All caps Word Clock
Minor bug fixes
New settings style - This one is cool


Potato Clock v2
Pussy Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
All caps Pussy
Ninja Time removed
All features from v1.1

PREVIOUS CHANGE LOGS
 

Potato Clock v1.3
Ninja Moves - Ninja Time
(Will change the current time to "NOW")

Potato Clock v1.2

Font - Bold|Condensed|Light|Light Italic|Normal|Custom (ttf & otf supported)

Potato Clock v1.1
AM/PM style -
Normal|Small|Gone|Custom
Date style -
Normal|Small|Gone|Custom

Potato Clock v1 - Initial release
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.
Also please test this fix for seconds not showing bug for custom format.
You can now use HH:MM SS or anything custom format with seconds
SECONDS FIX

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
(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">
    <
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>
    <
LinearLayout android:orientation="horizontal"  android:id="@id/icons" android:layout_width="fill_parent"  android:layout_height="fill_parent">
        <
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" />
        <
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" />
        <
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" />
    </
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


For those who have Potato Statusbar Gesture mod you can use this for center clock


PHP Code:
<com.potato.touchbar.TouchMe 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" />
    </
com.potato.touchbar.TouchMe



IF YOU ALREADY HAVE POTATO CLOCK JUST PASTE THE SMALI FILES (.smali) in
PHP Code:
SystemUI.apk\smali\com\potato\systemui\clocks 



ISSUES
404 ISSUES NOT FOUND


CREDITS
PotatoInc

Our STARMAGIC Family
pollube31 - 24/7 tester
@
Jay_SEAN - 12/2 tester

CYANOGENMOD





IF YOU LIKE OUR WORK YOU KNOW WHAT TO DO
IF YOU WANT TO USE THIS IN YOUR AWESOME WORK PLEASE SEND ME A PM
AND AT LEAST PRESS THANKS BUTTON

I SUFFER FROM SUPER HEADACHE VERSION 4 WHEN DOING THIS
Attached Thumbnails
Click image for larger version

Name:	lllllll.jpg
Views:	2659
Size:	118.3 KB
ID:	2616236  
Attached Files
File Type: apk Potato Clock App.apk - [Click for QR Code] (872.7 KB, 1327 views)
File Type: zip Potato Clock files (FINAL).zip - [Click for QR Code] (312.1 KB, 1096 views)
File Type: zip PotatoClock files with Seconds.zip - [Click for QR Code] (313.4 KB, 713 views)
The Following 37 Users Say Thank You to mariozawa For This Useful Post: [ Click to Expand ]
 
gothed
Old
#2  
gothed's Avatar
Senior Member
Thanks Meter 55
Posts: 229
Join Date: Dec 2013
Location: Yogyakarta
another great tutorial from potato master

The Following User Says Thank You to gothed For This Useful Post: [ Click to Expand ]
 
SpaceCaker
Old
#3  
SpaceCaker's Avatar
Recognized Themer / Contributor
Thanks Meter 10,615
Posts: 13,252
Join Date: Mar 2011
Location: netherlands
Nice guide bro :3
 

My Github Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Check My Website to find a portfolio and about me Click Here
The Following User Says Thank You to SpaceCaker For This Useful Post: [ Click to Expand ]
 
ag03sz
Old
#4  
ag03sz's Avatar
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jan 2012
Location: Pekalongan, Central Java
[QUOTE=mariozawa;50861830][CENTER][FONT=Century Gothic][B][SIZE=5]WHAT IS THIS?[/SIZE

nicely :thumbup:
 
misha1996
Old
(Last edited by misha1996; 6th March 2014 at 03:03 PM.)
#5  
misha1996's Avatar
Senior Member
Thanks Meter 172
Posts: 383
Join Date: Jan 2013
Location: Voskresensk
im wait it looong time! Biggest thanks to PotatoInc


Also wait circle battery ^^
 
burak144
Old
#6  
burak144's Avatar
Senior Member
Thanks Meter 289
Posts: 1,034
Join Date: Dec 2012
Location: Bingol/Turkey
hi sir can i apply this mod in aosp?

Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
PHONE: Moto G XT1033 Dual SIM
ROM: crDroid Build 12
KERNEL: Stock crDroid Kernel

My work for Galaxy Mini/Pop Plus:


 
vishal1404
Old
#7  
Senior Member
Thanks Meter 37
Posts: 213
Join Date: Apr 2013
Location: Mumbai
give it a try!!
 
MrPhamHpGYC
Old
#8  
Member
Thanks Meter 16
Posts: 35
Join Date: Mar 2014
Location: hai phong-viet nam
good
 
AuliaYF
Old
#9  
AuliaYF's Avatar
Senior Member
Thanks Meter 140
Posts: 138
Join Date: Jun 2013
Location: Bekasi, Indonesia
@mariozawa what will happen if you use RelativeLayout for the parent of all the statusbar elements since RelativeLayout can change it's childs rule. so far i know we can change relativelayout's child position directly from code. just a small question.
 
mariozawa
Old
#10  
mariozawa's Avatar
Recognized Themer - OP
Thanks Meter 736
Posts: 364
Join Date: Jul 2012
Location: Malolos, Bulacan

 
DONATE TO ME
Quote:
Originally Posted by AuliaYF View Post
@mariozawa what will happen if you use RelativeLayout for the parent of all the statusbar elements since RelativeLayout can change it's childs rule. so far i know we can change relativelayout's child position directly from code. just a small question.
I don't have any experience in RelativeLayout (Java part) hehe
But I think its a better idea than using multiple views

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes