[GUIDE][TUT][LP] How to Make Analogue Clock on Lockscreen COMPLETELY Circular - Sony Cross-Device Development Themes and Apps

Hi everyone, I never really liked the shape that the analogue clock from the lockscreen had so I gave a try to make it less squarey and more circular... And now I wanted to share it with you... Try it AT YOUR OWN RISK, always make a Backup first.
​
What you need:
- Advanced ApkTool installed (Java installed as well, so ApkTool can work)
- Notepad++
- SystemUI (you can get it at system/priv app/systemui)
- Make a Nandroid Backup just in case (it never hurts to make one)
- Knowledge on compiling and recompiling
- Follow my guide patiently and carefully
Instructions:
Decompile SystemUI.apk and go to res/values/dimens.xml
Search for this
Code:
<dimen name="somc_analog_clock_ellipse_depth_full_size">10.0dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_smaller">9.5dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_larger">11.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_full_size">55.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_smaller">52.25dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_larger">60.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_full_size">6.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_smaller">6.174988dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_larger">7.0999756dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_full_size">95.0dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_smaller">90.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_larger">104.5dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_full_size">3.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_smaller">3.087494dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_larger">3.5749817dip</dimen>
And change those with the following lines (you can copy and paste)
Code:
<dimen name="somc_analog_clock_ellipse_depth_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_smaller">1.5dip</dimen>
<dimen name="somc_analog_clock_ellipse_depth_larger">1.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_full_size">50.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_smaller">50.0dip</dimen>
<dimen name="somc_analog_clock_hour_hand_length_larger">50.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_full_size">4.5dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_smaller">4.174988dip</dimen>
<dimen name="somc_analog_clock_hour_hand_thickness_larger">4.0999756dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_full_size">70.0dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_smaller">70.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_length_larger">70.5dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_full_size">1.25dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_smaller">1.0874939dip</dimen>
<dimen name="somc_analog_clock_minute_hand_thickness_larger">1.5749817dip</dimen>
Search for this
Code:
<dimen name="somc_analog_clock_tick_radius_full_size">127.0dip</dimen>
<dimen name="somc_analog_clock_tick_radius_smaller">120.649994dip</dimen>
<dimen name="somc_analog_clock_tick_radius_larger">139.69998dip</dimen>
<dimen name="somc_analog_clock_tick_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_tick_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_tick_width_larger">2.1999817dip</dimen>
<dimen name="somc_analog_clock_center_size_full_size">33.0dip</dimen>
<dimen name="somc_analog_clock_center_size_smaller">31.349976dip</dimen>
<dimen name="somc_analog_clock_center_size_larger">36.299988dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_larger">2.1999817dip</dimen>
And replace with this
Code:
<dimen name="somc_analog_clock_tick_radius_full_size">115.0dip</dimen>
<dimen name="somc_analog_clock_tick_radius_smaller">115.649994dip</dimen>
<dimen name="somc_analog_clock_tick_radius_larger">115.69998dip</dimen>
<dimen name="somc_analog_clock_tick_width_full_size">2.0dip</dimen>
<dimen name="somc_analog_clock_tick_width_smaller">1.8999939dip</dimen>
<dimen name="somc_analog_clock_tick_width_larger">2.1999817dip</dimen>
<dimen name="somc_analog_clock_center_size_full_size">10.0dip</dimen>
<dimen name="somc_analog_clock_center_size_smaller">10.0dip</dimen>
<dimen name="somc_analog_clock_center_size_larger">10.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_full_size">1.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_smaller">1.0dip</dimen>
<dimen name="somc_analog_clock_center_stroke_width_larger">1.0dip</dimen>
Save the changes and recompile SystemUI, push it to its respective folder in system/priv app giving the correct permissions (rw-r-r) and reboot device.
So far I tested in my Xperia Z3 and my Xperia Z1 Compact but I'm guessing it can work for all Xperias running Lollipop... Very important, before trying anything ALWAYS MAKE A BACKUP.
I added pics at the bottom, first is the stock lockscreen clock and second is the modified one.
Hope you guys liked it, please hit the Thanks button if you found my job useful :highfive:

Works great for me, thanks. Can you teach me, how to make the minute of digital clock on lockscreen, light and also remove the seperator. Thanks,

Thank you!!

Could you maybe find a way of making this clock available as a widget to put on the home screen and not only in the lockscreen?
I really like it but I can only have it in lockscreen.

Kran007 said:
Works great for me, thanks. Can you teach me, how to make the minute of digital clock on lockscreen, light and also remove the seperator. Thanks,
Click to expand...
Click to collapse
@Kran007 I found a guide right here, hope it helps
http://forum.xda-developers.com/xperia-m2/themes-apps/tut-changing-lockscreen-clock-hour-t3226363
Gaugamela said:
Could you maybe find a way of making this clock available as a widget to put on the home screen and not only in the lockscreen?
I really like it but I can only have it in lockscreen.
Click to expand...
Click to collapse
@Gaugamela I'll try, my computer's been kinda broken lately but when it gets better I'll try to

Cool! Thanks a lot, I hope you can make it. I can't find any analog clock that looks as nice and I dont understand why we can have it in the lockscreen and not on the homescreen.

MarianaLovegood said:
@Kran007 I found a guide right here, hope it helps
http://forum.xda-developers.com/xperia-m2/themes-apps/tut-changing-lockscreen-clock-hour-t3226363
Finally, I found it, Many Thanks ? Just add another item for textstyle:Bold. Thanks for your help ?
Click to expand...
Click to collapse

is it possible to change tha clock on statusbar_expanded_header to digital clock?

Related

(Request) Can someone help decompile/edit/recompile

Something is way off with my recompile with apktool. The framework-res.apk is 600k smaller than it should be. I am editing framework-res\res\values\integers.xml
line
<integer name="config_backKillTimeout">2000</integer>
to
<integer name="config_backKillTimeout">400</integer>
this is from slimrom

[MOD][GUIDE]Touchwiz icons layout

Hi! Here is one small MOD and GUIDE for modding icon appearance in default samsung launcher I inspired here, thanks
What we can change:
icon count in row and column in menu
icon count in row and column on home screen
icon count on home screen in bottom line
What we need:
CWM (optional)
root
SecLauncher2.apk from system\app folder
How to mod:
make full backup
decompile SecLauncher2.apk
locate files
res\values-sw320dp-hdpi\integers.xml
res\values-sw320dp-hdpi\dimens.xml
in integers.xml we can change:
Code:
[I]icon count in row on home screen[/I]
<integer name="home_cellCountX">[COLOR="Red"]4[/COLOR]</integer>
[I]icon count in column on home screen[/I]
<integer name="home_cellCountY">[COLOR="red"]4[/COLOR]</integer>
[I]icon count in row in menu[/I]
<integer name="menuAppsGrid_cellCountX">[COLOR="red"]4[/COLOR]</integer>
[I]icon count in column in menu[/I]
<integer name="menuAppsGrid_cellCountY">[COLOR="red"]5[/COLOR]</integer>
[I]icon count on home screen in bottom line[/I]
<integer name="hotseat_cellCountX">[COLOR="red"]5[/COLOR]</integer>
In dimens.xml we can change:
Code:
[I]size of icons, should be change if you increase icon count in row/column otherwise icons will be too close[/I]
<dimen name="app_icon_size">[COLOR="Red"]48.0[/COLOR]dip</dimen>
[I]should be change if you changed home_cellCountX in integers.xml[/I]
<dimen name="home_cellWidth_port">[COLOR="red"]80.0[/COLOR]dip</dimen>
[I]should be change if you changed home_cellCountY in integers.xml[/I]
<dimen name="home_cellHeight_port">[COLOR="red"]96.0[/COLOR]dip</dimen>
[I]should be change if you changed hotseat_cellCountX in integers.xml[/I]
<dimen name="hotseat_cellWidth">[COLOR="red"]60.0[/COLOR]dip</dimen>
[I]should be change if you changed menuAppsGrid_cellCountX in integers.xml[/I]
<dimen name="menuAppsGrid_cellWidth">[COLOR="red"]78.0[/COLOR]dip</dimen>
[I]should be change if you changed menuAppsGrid_cellCountY in integers.xml[/I]
<dimen name="menuAppsGrid_cellHeight">[COLOR="red"]84.0[/COLOR]dip</dimen>
compile
copy back to phone
reboot
One small example:
For example I want to 5 icons in row in menu (default is 4). If I want to change this, I have to change in integers.xml line:
<integer name="menuAppsGrid_cellCountX">4</integer> to <integer name="menuAppsGrid_cellCountX">5</integer>
and in dimens.xml change line:
<dimen name="menuAppsGrid_cellWidth">78.0dip</dimen> to <dimen name="menuAppsGrid_cellWidth">62.5dip</dimen>
How to get proper numbers for dimens.xml file:
In my example I had original 4 icons and want 5. This mean I have to get from 78.0dpi -> 62.5dpi
(4 x 78) / 5 = 62.5 (in fact it is 62.4)
If you change one line in integers.xml, you have to change one proper line in dimens.xml.
In attachment is my moded SecLauncher2.apk, it has 6x5 icons in menu and 6 icons on home screen at bottom (see pictures). It is ODEX from 4.1.2. It should works on "N" model too, but i didn't test it.
edit:
Hi, I made for me new 7x5 menu layout, HS is still same. So if someone wants, here is it. Now it is DEODEXED.
excellent effort thank you I will try it later and make a feedback
please hit THANKS if I helped
sent from somewhere and somehow by the wonderful s3 mini
Thanks but, way ahead of ya.
modded to change the icons is much more appreciated to me as the stock touchwiz icons looks terrible...
nazri5363 said:
modded to change the icons is much more appreciated to me as the stock touchwiz icons looks terrible...
Click to expand...
Click to collapse
What you want to do is not related to Tw launcher editing actually. Google "change app icon" and you will find something useful!
Normally icons are placed in the apks under (in our case) res/drawable-hdpi (or drawable320dp-hdpi) under the name of icon.png or ic_launcher_icon.png
Sometimes you can also find them under /res/mipmap-hdpi !
Remember, if you want to change a icon don't unzip the apk, just open it with winrar/7zip and simply replace the icon png
Sent from my GT-I8190N using xda app-developers app
Hi, I added to first post new deodexed SecLauncher witch 7x5 menu grid...so if you want than use
tnx man for luncher very nice
can u accwather wedget for download?
It can be this forum.xda-developers.com/showpost.php?p=40192050&postcount=18
somin.n said:
It can be this forum.xda-developers.com/showpost.php?p=40192050&postcount=18
Click to expand...
Click to collapse
tanx somin...
I made it
luncher for rom dodex just 6 icons in desktop
What kind of error? With compilation or phone doesn't work with moded file?
somin.n said:
What kind of error? With compilation or phone doesn't work with moded file?
Click to expand...
Click to collapse
6 icons desktop
menu 5x5
rom dodex
icon launcher
6 icon desktop Down
5 icon desktop up
menu 5x5
rom dodex
Will this work for the S4? I want touchwiz to have 5 rows on the home screen and the dock at the bottom making the 6 row?
Analyzer52 said:
Will this work for the S4? I want touchwiz to have 5 rows on the home screen and the dock at the bottom making the 6 row?
Click to expand...
Click to collapse
You can try, but it is likely
Analyzer52 said:
Will this work for the S4? I want touchwiz to have 5 rows on the home screen and the dock at the bottom making the 6 row?
Click to expand...
Click to collapse
Hi! It should works, but you have to use SecLauncher2.apk from S4, not files from this thread, and mod it by yourself. And one more thing, dimens.xml and integers.xml willn't be in res\values-sw320dp-hdpi\, you have to find which folder is responsible for your phone resolution. Good luck
Thanks..
I made 4*6 apps menu Touchwiz with your guide...
Now updated [JB][MOD]Touchwiz with auto-rotation (4*6-v 6*3-h menu) default dpi. I think it will work for S3 mini as same screen size and dpi.
p_a_r_s_a7 said:
6 icon desktop Down
5 icon desktop up
menu 5x5
rom dodex
Click to expand...
Click to collapse
Hi,
Can you please tell me where the file is for this mod? Cheers
thank it helped me lot
Please make default icon layout on Home screen (4) plz....

[How-to] Maximum StatusBar Brightness 4.4.2

[How-to] Maximum StatusBar Brightness 4.4.2
This guide is based on the KK 4.4.2 Galaxy S5 builds.
I noticed that Samsung always make the statusbar notification areas a bit dim. Probably to help with battery conservation.
This requires decompiling SystemUI.apk.
SystemUI/res/values/dimens.xml edit
Code:
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
Note:
Screenshots are best viewed from a PC so you can rapidly swap images to see the difference.
Interesting, thanks sir.
Sent from my SM-G900P using Tapatalk

How to change color of text below icons

Does anyone know how to change the color of the text under the icons , mine are like a off white color, is their a xposed app for this?
J.dunn9984 said:
Does anyone know how to change the color of the text under the icons , mine are like a off white color, is their a xposed app for this?
Click to expand...
Click to collapse
Able to change icon label color with Atom launcher https://play.google.com/store/apps/details?id=com.dlto.atom.launcher&hl=en
yes there is a xpossed app, if i remember correctly try wannam or gravity...
J.dunn9984 said:
Does anyone know how to change the color of the text under the icons , mine are like a off white color, is their a xposed app for this?
Click to expand...
Click to collapse
For this you have to decompile the launcher apk, than go to res\values and open styles.xml.
In the xml file search for
Code:
<style name="BaseHomeIcon">
(should be on top)
and change the value for the color in red
Code:
<item name="android:textColor">#[COLOR="Red"]ffffffff[/COLOR]</item>
Recompile it, copy the AndroidManifest.xml and META-INF folder from the originale apk to the new compiled apk and push it to the right place.

Layout issues when adding toolbar to preference screen

I try to built a preference screen with a toolbar, but I got some issues:
- There is a word "main". How can I remove it?
- The status bar is white. I want it to look like my main screen (same theme). Somehow it does not apply the color
- The toolbar overlays the content. I tried a a layout_marginTop on the list view, but it does not change anything.
Here is the code of my activity_settings.xml:
Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary"
app:navigationIcon="?attr/homeAsUpIndicator"
app:title="@string/action_settings"
android:theme="@style/ThemeOverlay.AppCompat.Dark" />
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize"/>
</LinearLayout>
This is the AndroidManifest entry:
Code:
<activity
android:name=".activities.SettingsActivity"
android:label="@string/activity_settings"
android:theme="@style/AppTheme.NoActionBar" />
Can anybody help me?
Why don't you link the manifest of the 2 activities to the same style theme?
--------------------------
I keep track of your replies with my android devices using the app "Tapatalk".
What do you mean? Can you please give me a short example? Thank you!
He wants both of the activity to have the same theme. You have to do it in the manifest. Also to remove main, you have to set android:label=""
To change the status bar color, change color for colorPrimaryDark in color.xml

Categories

Resources