[Asus Zenfone 4] bamzzz:
Hi all, this is my first guide about modify AsusSystemUI..

This guide is based on the Asus Zenfone 4S (T00Q) Lollipop firmware

Feature:

Change Clock Style (STOCK, MIUI, DIY)

Change Clock color with enable/disable coloring

Change Clock size

Change Clock font

Enable/Disable digital clock

Advanced text customization (shadow text, etc)

Requirement:

- Understanding about APK compile/decompile

- APKTool

- Notepad++ (PC)

How:

Part AsusSystemUI:

1. Decompile AsusSystemUI.apk

2. Put smali from guide to smali folder.. Overwrite if already exist..

3. Copy or compare res/layout/asus_status_bar_expanded_header.xml from guide to res/layout folder on AsusSystemUI

4. Copy or compare res/layout/split_clock_view.xml from guide to res/layout folder on AsusSystemUI

5. Done. just Recompile UI , dont forget to Sign and zipalign.

6. SystemUI already push into system

Part ZenControl:

1. Decompile ZenControl

2. Open /res/xml/dropdown_prefs.xml and add this:

<PreferenceScreen android:title="@string/split_clock_preference">
<PreferenceCategory android:title="@string/split_clock_preference" />
<com.wubydax.romcontrol.prefs.MyListPreference
android:entries="@array/split_clock_style_entries"
android:title="@string/split_clock_style_title"
android:key="split_clock_style"
android:defaultValue="0"
android:entryValues="@array/split_clock_style_values" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/split_clock_digital_title"
android:key="split_clock_digital"
android:summaryOn="@string/enable"
android:summaryOff="@string/disable" />
<CheckBoxPreference
android:defaultValue="false"
android:title="@string/split_clock_force_coloring_title"
android:key="split_clock_force_coloring"
android:summaryOn="@string/enable"
android:summaryOff="@string/disable" />
<com.wubydax.romcontrol.prefs.ColorPickerPreference
android:title="@string/split_clock_color_title"
android:key="split_clock_color"
android:defaultValue="\#ff737373"
alphaSlider="true"
android:dependency="split_clock_force_coloring" />
<com.wubydax.romcontrol.prefs.MyListPreference
android:entries="@array/split_clock_font_style_entries"
android:title="@string/split_clock_font_title"
android:key="split_clock_font"
android:defaultValue="0"
android:entryValues="@array/split_clock_font_style_values" />
<com.wubydax.romcontrol.prefs.SeekBarPreference
android:max="88"
android:title="@string/split_clock_size_title"
android:key="split_clock_size"
android:defaultValue="55" />
<PreferenceScreen android:title="@string/split_clock_adv_custom_title">
<PreferenceCategory android:title="@string/split_clock_adv_custom_title" />
<com.wubydax.romcontrol.prefs.SeekBarPreference
android:icon="@null"
android:max="10"
android:title="@string/split_clock_shadow_r_title"
android:key="split_clock_shadow_r"
android:defaultValue="1"
min="0"
unitsRight="" />
<com.wubydax.romcontrol.prefs.SeekBarPreference
android:icon="@null"
android:max="5"
android:title="@string/split_clock_shadow_x_title"
android:key="split_clock_shadow_x"
android:defaultValue="0"
min="-5"
unitsRight="" />
<com.wubydax.romcontrol.prefs.SeekBarPreference
android:icon="@null"
android:max="5"
android:title="@string/split_clock_shadow_y_title"
android:key="split_clock_shadow_y"
android:defaultValue="0"
min="-5"
unitsRight="" />
<com.wubydax.romcontrol.prefs.ColorPickerPreference
android:title="@string/split_clock_shadow_c_title"
android:key="split_clock_shadow_c"
android:defaultValue="\#89000000"
alphaSlider="true" />
</PreferenceScreen>
</PreferenceScreen>

3. Add this to res/values/strings.xml

<string name="split_clock_preference">SplitClock Preference</string>
<string name="split_clock_style_title">Clock style</string>
<string name="split_clock_force_coloring_title">Enable Clock coloring</string>
<string name="split_clock_color_title">Clock color</string>
<string name="split_clock_size_title">Clock size</string>
<string name="split_clock_font_title">Clock font</string>
<string name="split_clock_digital_title">Transform to digital clock</string>
<string name="split_clock_font_normal">Normal</string>
<string name="split_clock_font_italic">Italic</string>
<string name="split_clock_font_bold">Bold</string>
<string name="split_clock_font_bold_italic">Bold Italic</string>
<string name="split_clock_font_light">Light</string>
<string name="split_clock_font_light_italic">Light Italic</string>
<string name="split_clock_font_thin">Thin</string>
<string name="split_clock_font_thin_italic">Thin Italic</string>
<string name="split_clock_font_condensed">Condensed</string>
<string name="split_clock_font_condensed_italic">Condensed Italic</string>
<string name="split_clock_font_condensed_light">Condensed Light</string>
<string name="split_clock_font_condensed_light_italic">Condensed Light Italic</string>
<string name="split_clock_font_condensed_bold">Condensed Bold</string>
<string name="split_clock_font_condensed_bold_italic">Condensed Bold Italic</string>
<string name="split_clock_font_medium">Medium</string>
<string name="split_clock_font_medium_italic">Medium Italic</string>
<string name="split_clock_font_black">Black</string>
<string name="split_clock_font_black_italic">Black Italic</string>
<string name="split_clock_adv_custom_title">Adv Text Customization</string>
<string name="split_clock_shadow_r_title">Shadow radius</string>
<string name="split_clock_shadow_x_title">Shadow Dx</string>
<string name="split_clock_shadow_y_title">Shadow Dy</string>
<string name="split_clock_shadow_c_title">Shadow color</string>

4. Open res/values/arrays.xml and add this:

<string-array name="split_clock_style_entries">
<item>Default</item>
<item>Up like MIUI</item>
<item>Down ˹DIY˼</item>
</string-array>
<string-array name="split_clock_style_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<string-array name="split_clock_font_style_entries">
<item>@string/split_clock_font_normal</item>
<item>@string/split_clock_font_italic</item>
<item>@string/split_clock_font_bold</item>
<item>@string/split_clock_font_bold_italic</item>
<item>@string/split_clock_font_light</item>
<item>@string/split_clock_font_light_italic</item>
<item>@string/split_clock_font_thin</item>
<item>@string/split_clock_font_thin_italic</item>
<item>@string/split_clock_font_condensed</item>
<item>@string/split_clock_font_condensed_italic</item>
<item>@string/split_clock_font_condensed_light</item>
<item>@string/split_clock_font_condensed_light_italic</item>
<item>@string/split_clock_font_condensed_bold</item>
<item>@string/split_clock_font_condensed_bold_italic</item>
<item>@string/split_clock_font_medium</item>
<item>@string/split_clock_font_medium_italic</item>
<item>@string/split_clock_font_black</item>
<item>@string/split_clock_font_black_italic</item>
</string-array>
<string-array name="split_clock_font_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
<item>14</item>
<item>15</item>
<item>16</item>
<item>17</item>
</string-array>

5. Recompile ZenControl..

6. Install ZenControl as normal APK

Task: SystemUI must be restart for change to default color after disable clock coloring.

Good luck.. Keep Oprek.. Salam Bootloop :D

Created by bamzzz@xda

fb.me/bamz4ever

http://xdaforums.com/member.php?u=4672359

ZenControl by Wuby986@xda & daxgirl@xda

http://xdaforums.com/android/apps-games/app-rom-control-app-devs-t3146567

Video: https://www.youtube.com/watch?v=m90XEGO_KnE