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

Search This thread

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
I use this mode and potato status bar gesture
In fullscreen mode (youtube and others) Statusbar Force closed/Stop working
Pls try to fix it

Please attach some logcats.
Its working fine to me.

ta2e3egy.jpg
4u4uvuqu.jpg


Sent from my GT-I9300 using Tapatalk
 
Last edited:
  • Like
Reactions: SpaceCaker

s020407

Member
Mar 7, 2013
24
1
hi sir, after following your guide my clock is not exactly at the center i also use pineapple parts and still the same. here's my status_bar.xml and im running SGY DUOS

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:eek:rientation="vertical" android:background="@drawable/gradient_bg" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.b16h22.statusbar.StatusBar android:id="@id/statusbarcolor" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:eek:rientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:gravity="left|center" android:background="@drawable/statusbarlogo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<TextView android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Pen" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center" android:eek:rientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">
<com.android.systemui.statusbar.tweaks.CenterClock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="28.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" android:layout_centerInParent="true" />
<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:eek:rientation="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:eek:rientation="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:eek:rientation="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:gravity="center_vertical" android:eek:rientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:eek:rientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.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:eek:rientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.tweaks.SignalText android:textSize="26.5dip" android:textStyle="bold" android:gravity="center_vertical" android:eek:rientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.tweaks.BatteryText android:textSize="16.5dip" android:textStyle="bold" android:gravity="center_vertical" android:eek:rientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.tweaks.Clock android:textSize="26.5dip" android:textStyle="bold" android:gravity="right|center" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</com.android.systemui.statusbar.StatusBarServiceLRPull>
<LinearLayout android:eek:rientation="horizontal" android:id="@id/ticker" 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/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" 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:textSize="0.0sp" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#00000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.tweaks.BatteryBar android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:eek:rientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.StatusBarView>

please help me figure out my problem. ive been up late for 2days already trying to resolve this issue
 

Attachments

  • SC20140330-040612.png
    SC20140330-040612.png
    85.2 KB · Views: 258

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,904
netherlands
www.youtube.com
I use this mode and potato status bar gesture
In fullscreen mode (youtube and others) Statusbar Force closed/Stop working
Pls try to fix it

Ok so i had this aswell

u must be using ICS or JB

as thatd where i got the fcd aswel.


the reason?

because of the original clock.

we may not remove it!
its id is loaded in the Java methods i found in the logcat

so what u nee to do is put the clock under the potatoclock
and change layout height and width to 0.0dip

this way it registers the availability of clock id

and thus fullscreen works ;)

for me it works now 100%

Sent from my S500 using xda app-developers app
 

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
Ok so i had this aswell

u must be using ICS or JB

as thatd where i got the fcd aswel.


the reason?

because of the original clock.

we may not remove it!
its id is loaded in the Java methods i found in the logcat

so what u nee to do is put the clock under the potatoclock
and change layout height and width to 0.0dip

this way it registers the availability of clock id

and thus fullscreen works ;)

for me it works now 100%

Sent from my S500 using xda app-developers app


Same with MIUI GB :laugh:
 

s020407

Member
Mar 7, 2013
24
1
please help me fix the margin of the left icons to set the clock exactly at the center and how can i trigger the more apps if there are 2 or more icons notification? i followed your guide sir hoping it will fix the problem but i figured it out that its because of the margin
 

Attachments

  • SC20140401-030852.png
    SC20140401-030852.png
    78.7 KB · Views: 198
Last edited:

gamzekal

Senior Member
Aug 6, 2012
2,297
3,523
Fizan
Permission

Can i port your awesome Guides for Xperia P
I ported to my phone.It works non FC.I wait your permission for open a Theread.
Thanks for hard work
 

killoid

Senior Member
Feb 5, 2013
1,266
442
@mariozawa bro i will request u to make an xposed module for gb combining all of ur statusbar tweaks. it will be easier for users as there is no module for gb to tweak the statusbar to anyone's content. plz consider the suggestion. :)
 

Pocket Fan

Member
Mar 29, 2014
49
7
About some issue.

This mod is too great!
But I have some problem.
I don't know this is my device's ROM or this MOD's problems.
1. In some fullscreen app, SystemUI will FC's.
2. When the Ticker appears, center clock cannot automatically hidden.
I hope you can help me to solve these problems, thank you!
 
Last edited:

SpaceCaker

Senior Member
Mar 26, 2011
13,545
10,904
netherlands
www.youtube.com
This mod is too great!
But I have some problem.
I don't know this is my device's ROM or this MOD's problems.
1. In some fullscreen app, SystemUI will FC's.
2. When the Ticker appears, center clock cannot automatically hidden.
I hope you can help me to solve these problems, thank you!

like i said before

this is because u removed original clock

i assume u use ICs or jb+

keep the original clock but change its height and width to 0.0dip

i logcatted and tracked down this issue
and that managed to fix it

why this happens?

the clock id is loaded to be hidden in some apps or in fullscreen apps

because u removed it it will fc systemui.


Sent from my S500 using xda app-developers app
 
  • Like
Reactions: mariozawa

Pocket Fan

Member
Mar 29, 2014
49
7
like i said before

this is because u removed original clock

i assume u use ICs or jb+

keep the original clock but change its height and width to 0.0dip

i logcatted and tracked down this issue
and that managed to fix it

why this happens?

the clock id is loaded to be hidden in some apps or in fullscreen apps

because u removed it it will fc systemui.


Sent from my S500 using xda app-developers app
Thanks for your help.
I will try it again.
 

s020407

Member
Mar 7, 2013
24
1
Post your code here (properly)
We cannot guess your problem.
Or try to use my code then make some changes.

Sent from my GT-I9300 using Tapatalk

Mr. Mariozawa This is my proper code. im sure the problem is that icons from the left and it occupies almost the center. my problem is how to fix that left icon and make it merge with a + sign i also attach an SS of that problem.

I also tried your codes and put it in exact positions but still the clock wont go to the exact center. I hope you can teach me how to merged those icon in the left and fix the margin. Thank you in advance and MORE POWER to the devs!

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="@drawable/gradient_bg" android:focusable="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <com.b16h22.statusbar.StatusBar android:id="@id/statusbarcolor" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
    <com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="fill_parent">
        <LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <TextView android:gravity="left|center" android:background="@drawable/statusbarlogo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            <TextView android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Pen" />
            <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
                <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerInParent="true">
                    <com.android.systemui.statusbar.tweaks.CenterClock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="28.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" android:layout_centerInParent="true" />
                    <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:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.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="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
                    <com.android.systemui.statusbar.tweaks.SignalText android:textSize="26.5dip" android:textStyle="bold" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                    <com.android.systemui.statusbar.tweaks.BatteryText android:textSize="16.5dip" android:textStyle="bold" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                    <com.android.systemui.statusbar.tweaks.Clock android:textSize="26.5dip" android:textStyle="bold" android:gravity="right|center" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                </LinearLayout>
            </RelativeLayout>
        </LinearLayout>
    </com.android.systemui.statusbar.StatusBarServiceLRPull>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="5.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="5.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" 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:textSize="0.0sp" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#00000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
    <com.android.systemui.statusbar.tweaks.BatteryBar android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.StatusBarView>
 

Attachments

  • SC20140401-030852.png
    SC20140401-030852.png
    78.7 KB · Views: 114

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
Mr. Mariozawa This is my proper code. im sure the problem is that icons from the left and it occupies almost the center. my problem is how to fix that left icon and make it merge with a + sign i also attach an SS of that problem.

I also tried your codes and put it in exact positions but still the clock wont go to the exact center. I hope you can teach me how to merged those icon in the left and fix the margin. Thank you in advance and MORE POWER to the devs!

I juander.:laugh:
You have duplicate codes.

Try this code I just modified your code its now cleaner.
Its not tested.
I only used my built-in mind compiler version 2.0 so test it then report back:good:

PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="@drawable/gradient_bg" android:focusable="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <com.b16h22.statusbar.StatusBar android:id="@id/statusbarcolor" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
    <com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="fill_parent">
        
        <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerInParent="true">
            <com.android.systemui.statusbar.tweaks.CenterClock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="28.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" android:layout_centerInParent="true" />
            <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" />
                    <TextView android:gravity="left|center" android:background="@drawable/statusbarlogo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                    <TextView android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Pen" />            
                    <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="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
                    <com.android.systemui.statusbar.tweaks.SignalText android:textSize="26.5dip" android:textStyle="bold" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                    <com.android.systemui.statusbar.tweaks.BatteryText android:textSize="16.5dip" android:textStyle="bold" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
                    <com.android.systemui.statusbar.tweaks.Clock android:textSize="26.5dip" android:textStyle="bold" android:gravity="right|center" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="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>
    </com.android.systemui.statusbar.StatusBarServiceLRPull>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="5.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="5.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker" 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:textSize="0.0sp" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#00000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
    <com.android.systemui.statusbar.tweaks.BatteryBar android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.StatusBarView>
 

s020407

Member
Mar 7, 2013
24
1
I juander.:laugh:
You have duplicate codes.

Try this code I just modified your code its now cleaner.
Its not tested.
I only used my built-in mind compiler version 2.0 so test it then report back:good:

Sir my Batter Icon,Signal and etc are all gone. only the clock is shown
 

Attachments

  • SC20140410-005934.png
    SC20140410-005934.png
    71.9 KB · Views: 90

Top Liked Posts

  • There are no posts matching your filters.
  • 64
    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
    ***** Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
    All caps *****
    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
    1535479_656569271046107_814170500_n.jpg


    10155608_645031108901482_2099040492_n.jpg


    1010292_658226037547097_355515066_n.jpg


    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:
    <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:
    <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:
    <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:
    <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:
    <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:
    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
    2
    hi sir @mariozawa i just want to ask if there is a way to fix notifications overlap when using center clock of potato clock? thanks a lot..
    Try putting them in different LinearLayouts.


    _________________________________________
    Thread is updated I wish anyone like it :fingers-crossed:
    1
    another great tutorial from potato master :D
    1
    Nice guide bro :3
    1
    @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. :D

    I don't have any experience in RelativeLayout (Java part) hehe
    But I think its a better idea than using multiple views:laugh: