Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[GUIDE] Adding analog clock on expanded status bar

$
0
0
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!!!

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>