Showing posts with label hour. Show all posts
Showing posts with label hour. Show all posts

Monday, 19 October 2015

Issue with 12 hour time display



Is anyone else having an issue with some watch faces showing in 24 hour format instead of 12 hour? An example for me is the Glance watch face, there is no setting in the app to toggle and the display in Zen manage show 12 hour available but no matter what I do it displays in 24 hour format.



Thursday, 15 October 2015

[TUT] Changing Lockscreen Clock Hour style to blod



Hi
As promise to @tromine this is simple tutorial that change lockscreen Hour style to bold :D

What You Need:

1. APK Tool for decompiling (i use TMA and Thanks go to Ticklefish)
2. Stock Sony 18.6.A.0.175 rom installed and odex
3. Patience & Time

Lets Start.



First pull: SystemUI, framework-res and SemcGenericUxpRes ( Res are needed so you can properly decompile SystemUI)
Decompile SystemUI and go to SystemUI.apk\res\values folder open styles.xml

Find:

Code:


    <style name="somc_sony_clock_hour_style" parent="@style/SonyClockBaseStyle">
        <item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>
        <item name="android:maxLines">1</item>
        <item name="android:fontFamily">x-sst</item>
    </style>
    <style name="somc_sony_clock_minute_style" parent="@style/SonyClockBaseStyle">
        <item name="android:textSize">@dimen/somc_sony_clock_minute_digit_size</item>
        <item name="android:maxLines">1</item>
        <item name="android:fontFamily">x-sst</item>


"somc_sony_clock_hour_style" controls Hour numbers
"somc_sony_clock_minute_style" control Min numbers

Add this line:
At "clock_hour_style"

Code:


<item name="android:textStyle">bold</item>

under

Code:


<item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>

At "clock_minute_style" change:

Code:


<item name="android:fontFamily">x-sst</item>

To

Code:


<item name="android:fontFamily">x-sst-light</item>

Now save and you can recompile.
If you want to change size of clock go to SystemUI.apk\res\values open dimens.xml
This are sizes for clock:

Code:


    <dimen name="somc_sony_clock_hour_digit_size">114.0dip</dimen>
    <dimen name="somc_sony_clock_minute_digit_size">108.0dip</dimen>


I changed my like this:

Code:


    <dimen name="somc_sony_clock_hour_digit_size">94.0dip</dimen>
    <dimen name="somc_sony_clock_minute_digit_size">94.0dip</dimen>


So it look smaller :D




@psichokillah want to get rid of the clock on the lockscreen. Is it possible?
The Answer is Yes. ;)




Go to SystemUI.apk\res\layout\somc_sony_clock_view.xml
On First line:

Code:


<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:layout_width="wrap_content" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">


Add (android:visibility="invisible") after android:id="@id/sony_clock_root" so it look like this:

Code:


<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">


Save, recompile Push apk to system. :)



P.S. zips are NOT flashable copy/push them your choice.
How to Install:



1. Copy moded SysteUI to sd_card
2. Reboot to PhilZ_Touch recovery
3. Go to "Mounts and Storage
- mount /system ++Go Back++
Advanced Functions->Aroma File Manager
4. Select sdcard
5. Press and hold SystemUI->copy->Go back
6. Select: system->priv-app->SystemUI (Paste here and Overwrite)
Note: If permession is not rw-r--r-- select SystemUI.apk->menu->Change Permission to (User:read/write, Group:read, Others:read)
- Exit Aroma FM
- Wipe Cache and Dalvik/ART Cache
7. Reboot System Now










Attached Thumbnails


Click image for larger version<br/><br/>Name:	LockScreenBold1.png<br/>Views:	N/A<br/>Size:	158.3 KB<br/>ID:	3507966
 

Click image for larger version<br/><br/>Name:	Screenshot0.png<br/>Views:	N/A<br/>Size:	145.4 KB<br/>ID:	3507967
 











Attached Files










File Type: rar SystemUI_Bold_Hour.rar -
[Click for QR Code]
(1.71 MB)
File Type: rar SystemUI_No_Clock.rar -
[Click for QR Code]
(1.71 MB)