[Android Themes] user_x:
CenterClause, inspired by Semicuda's TypoClock

Since TypoClock does currently not have an option to use a centered layout I have built myself an mClock theme as a workaround.

Codewise it is anything but elegant, e.g. invisible text is used to position elements. It's a "fair enough"-solution which I have written for myself and should be considered as such. Feel free to use it, but please don't expect me to support it in any way. It looks fine on my HTC Desire (Froyo 2.2 with Launcher Pro and Sense), but may not work for you at all.

Due to the different width and height of numbers space between numbers and text varies.

The following fonts are used and not provided with the theme:

DejaVuSans.ttf

DejaVuSansCondensed.ttf

YoxallBold.ttf

The path to the fonts is /sdcard/.fonts/. Change it according to your setup.

Thanks to Semicuda for TypoClock and the inspiration and to knoxcoder for the highly customizable mClock.

<?xml version="1.0" encoding="utf-8"?>

<!-- CenterClause theme for knoxcoder's mClock / by user_x / inspired by Semicuda's Typoclock-->

<stack orientation="vertical" horizontalalignment="stretch" verticalalignment="center" margin="0" clipping="false">

<stack orientation="horizontal" horizontalalignment="center" verticalalignment="top" margin="0" height="101" fontsize="115" font="/sdcard/.fonts/YoxallBold.ttf" >
<hour is24hour="true" foreground="#ffffffff, #ffffffff" />
<text text=":" foreground="#ffffffff, #ffffffff" />
<minute foreground="#ffffffff, #ffffffff" />
</stack>

<dayname horizontalalignment="center" verticalalignment="top" margin="0" case="upper" foreground="#ffffffff, #ffffffff" height="55" fontsize="55" font="/sdcard/.fonts/DejaVuSansCondensed.ttf" />

<stack orientation="horizontal" horizontalalignment="center" verticalalignment="top" margin="0" height="101">

<stack orientation="vertical" horizontalalignment="left" verticalalignment="top" margin="0" height="101">
<monthname horizontalalignment="left" verticalalignment="top" margin="-4" height="37" case="upper" foreground="#00ffffff, #00ffffff" fontsize="37" font="/sdcard/.fonts/DejaVuSansCondensed.ttf" />
<year horizontalalignment="left" verticalalignment="top" margin="-4" foreground="#00ffffff, #00ffffff" fontsize="67" font="/sdcard/.fonts/DejaVuSans.ttf" />
</stack>

<day horizontalalignment="left" verticalalignment="top" margin="2" height="101" leadingzero="true" foreground="#ffffffff, #ffffffff" fontsize="115" font="/sdcard/.fonts/YoxallBold.ttf" />

<stack orientation="vertical" horizontalalignment="left" verticalalignment="top" margin="0" height="101" >
<monthname horizontalalignment="left" verticalalignment="top" margin="-4" height="37" case="upper" foreground="#ffffffff, #ffffffff" fontsize="37" font="/sdcard/.fonts/DejaVuSansCondensed.ttf" />
<year horizontalalignment="left" verticalalignment="top" margin="-4" foreground="#ffffffff, #ffffffff" fontsize="65" font="/sdcard/.fonts/DejaVuSans.ttf" />
</stack>

<day horizontalalignment="left" verticalalignment="top" margin="2" height="101" leadingzero="true" foreground="#00ffffff, #00ffffff" fontsize="115" font="/sdcard/.fonts/YoxallBold.ttf" />
<text text=":" horizontalalignment="left" verticalalignment="top" margin="0" foreground="#00ffffff, #00ffffff" fontsize="115" font="/sdcard/.fonts/YoxallBold.ttf" />

</stack>

</stack>