Sunday, February 28, 2016

[GUIDE] Adding analog clock on expanded status bar

First of all, you need this all tools
Apktool
Systemui.apk
Brain.apk

on your decompiled systemui
go to
res/layout/tw_status_bar.xml or status bar.xml or whatever on your device.

add this code under the background you added on your status bar

<AnalogClock android:layout_gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" android:dial="@drawable/clock" android:hand_hour="@drawable/hour" android:hand_minute="@drawable/minute" />

If you wan to centralized the clock, this code is must

<AnalogClock android:layout_gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" android:dial="@drawable/clock" android:hand_hour="@drawable/hour" android:hand_minute="@drawable/minute" />

create 3 images for your analog

rename mo sa
clock.png
hand.png
minute.png


Recompile, sign and push!!!


from xda-developers http://ift.tt/24vcFw4
via IFTTT

No comments:

Post a Comment