Coder Social home page Coder Social logo

vladimirwrites / analogwatchface Goto Github PK

View Code? Open in Web Editor NEW
122.0 12.0 21.0 1.72 MB

⌚ Analog Watch Face for Wear OS

Home Page: https://vladimirj.dev/analog-watch-face/

License: Apache License 2.0

Kotlin 95.04% HTML 4.96%
android wear-os wearable watchface analog-watch-face kotlin kotlin-android watch-face

analogwatchface's Introduction

Hey! Nice to see you!

My name is Vladimir Jovanović and I am an Android Developer and a Pluralsight author 🎙️ from Berlin, Germany.

analogwatchface's People

Contributors

domi04151309 avatar jskrzecz avatar prosenb avatar vladimirwrites avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

analogwatchface's Issues

[FEATURE] Some requests

Hi, I'd like to propose some additions which would allow even more customizations with just a few more lines of code.

  1. Add a scale slider for the Tick Marks Layout, so that one can adjust tick length without having to create a separate layout, or also in order to make the tick marks closer to the bezel of the watch for watches that have a dark ring on the frame (fossil gen5 for example).
  2. Add an option to hide the minutes Tick Marks on ambient mode. In the current version of the app one could only hide the minutes tick marks for all the views, while it would be cooler if there was a switch to only hide them in ambient mode (like some of the stock fossil watchfaces do)
  3. Add a wiki to the project with some kind of instructions on how to contribute graphically, for example I know some people who could add layouts to this project, and a brief introduction on how to add layouts would really help.
  4. Since the background has a color left / color right option, I think it would be also cool to have such an option also for the hands and tick marks. This way a more realistic look could be achieved, for example 2 shades of gray for the tick marks could be setup to have a more "metallic" feel to the tick marks instead of a plain color.

Thanks for the great open source app, I'll try to contribute as soon as I have some free time on my hands.

Weather icon not showing in complication on PW1

Hey. Being a fan of the face for a long time. Now switched to PW1. After all the system updates the icon of current weather stopped showing in the complication. I can tell that it worked before installing latest updates.

Now only the temperature is visible.

Config layout error

Hi...! Lovely of you to give this code. Thank you!

I'm very new, trying to learn. Can't understand most of it. Everything loads and runs fine on my Ticwatch Pro as a VD from AS 3.6...but when I enter config screen on watch (cog press) and scroll down, there is the option "Rate the Watch Face" then a big gap, thenI can just see part of the word "second" and I can see the word "hand" and the option slider circle thing is nearly off the screen.

I can't see anywhere in the code where this might be happening...can you show me the part that creates this list and where the gap might be?

So many thanks!

Rob ( [email protected])

Update Background Complications

Hi Vladimir, I discovered the following problem with the complication of the background of the dial.

After choosing the complication of the background of the watch face, the background image replaces the main color (gradient), this works well, BUT if you turn off the complications of the background image, then there is no automatic change to the usual gradient. This will happen only after switching the dial to another and returning back, that is, reinitializing the settings.

I see the reason that the data storage is not updating

Maybe a problem in the following piece of code in WatchFace.kt

override fun onComplicationDataUpdate(watchFaceComplicationId: Int, complicationData: ComplicationData) {
    super.onComplicationDataUpdate(watchFaceComplicationId, complicationData)
    val data = complicationData.sanitize(this@WatchFace, dataStorage.getComplicationProviderName(watchFaceComplicationId))

    if(watchFaceComplicationId == BACKGROUND_COMPLICATION_ID) {
        if(data.largeImage != null) {
            layouts.backgroundComplication.isVisible = true
            layouts.backgroundComplication.setComplicationData(data)
        } else {
            layouts.backgroundComplication.isVisible = false
        }
    } else {
        layouts.complications.setComplicationData(watchFaceComplicationId, data)
    }

    invalidate()
}

if before
layouts.backgroundComplication.isVisible = false

add code
layouts.backgroundComplication.setComplicationData (null)

Then the background change will occur correctly

Ambient (AOD) time out of sync after latest Galaxy Watch 4 update

Dear Vladimir,

after the recent Galaxy Watch 4 software update the ambient time is out of sync (15-20 minutes behind). It will update if I update the screen.
This seems to be a general issue with all watchfaces.
See:

  1. samsung-galaxy-watch-4-update-breaks-aod
  2. https://www.reddit.com/r/GalaxyWatch/comments/soizey/issues_with_new_update/
  3. https://www.reddit.com/r/WearOS/comments/soivxf/some_older_watchfaces_may_not_work_correctly/

@benoitletondor introduced a fix for his PixelMinimalWatchFace

Could you introduce the same fix for your AnalogWatch face? I really love it but like this it is not usable :'(

Thanks very much!

option to not have label on complications

I like your watch face very much! it is truly simple and elegant. I would like to request the option of having a complication without a label, only the number. I usually have my step count and my battery as complications, but I would like to be able to have only the number without the words "steps" or "battery" Is this possible?

"Day and Date" complication doesn't show Day

Using Samsung Galaxy Watch 4, the "Day and Date" complication now no longer includes the day, and instead shows a calendar icon.

Not sure if this change was caused by an update to the watch face (perhaps fixing #22?) or a Samsung update, it's been like this for a few months (sorry I didn't raise it earlier!).

Complications not updating

Hi Vladimir, really like this watch face but I have an issue where the steps and the sunrise/sunset and date complications (amongst others) stop updating (consistently stuck more than once for 24 hours). If I unselect the watch face (ie move to another watch face) and then move back to your watch face then the complications update again.

This is on Galaxy Watch 4, with all latest updates.

Pro Trek

Hi Vladimir
I have a Casio Protrek WSD-F21HR-RDBGB
It has the Flat Tyre screen design.
Is it possible to adjust your excellent watch face to accommodate this by zooming the dial or creating a larger border around the circumference.
Thanks
Jonathan
16277333404067962675828127414140

Add option to force small complications at the top and bottom

Right now, if the complication data provider supports wide complications top and bottom complications will always be shown as wide. This should be adjusted so that the user has an option to specify if the complication should be shown as circular or as wide.

This could introduce some bugs if the complication is already selected.

Oppo watch heart rate

Good day On oppo watch heart rate complication show only the icon without number please can you fix it and i would like to ask if it is possible to add numbers tick. Thanks in advance

battery level - circle

Hi Vladimir,
after a long journey I've finaly found your app which exactly meets my needs and expectations. Good job, thank you.

Everything works fine, just two things:

  1. On my Samsung Galaxy Watch4 Classic, 46mm I've set the battery level indicator where I can see how much % of battery remains, there is also a bow (= part of a circle) around which indicates how much energy is used. The more energy used the longer is the bow. When there is 0% of battery left, so the bow would be a full circle 360°. So there are two contrary parameters about battery energy.
    My request: I'd rather have two equal indications: number in % how much battery remains + circle which would also indicate how much battery remains. So if I have 100% battery, the circle would be 360°.
  2. On my wife's Samsung Galaxy Watch4, 40mm there is no bow/circle around the battery level indicator at all. I guess this is due to less display resolution of the smaller Watch4, 40 mm version, right?
    Both me and my wife aren't young people anymore, our eyes don't work well anymore. Besides % of battery we need also optical battery level indicator - bow/circle which is great to see on locked screen too!
    Could you please fix it?
  3. One more question: I'd welcome bigger characters (numbers) of complications - in our case is it Datum and Battery level.
    Sure I've set the option "Use bigger text" but I'd be happy if the text could be even bigger.

Please see attached picture of the watch of mine and my wife.
Keep going in good work. Whishing all the best
Ondrej
DSC_5352

Current heart rate not shown on Galaxy Watch 5

Hi there!

I really like your analog watch face, since I was looking for a sleek, customizable UI with some complications.

Unfortunately, on my Galaxy Watch 5, the heart rate complication does not show the current heart rate, but only an icon.

Is this currently not implemented, as I read in your description, that some Samsung device features are not available?

Are there any updates or can I help you with realising this?

Keep complication's color in ambient mode

It would be a good idea if there was an option that I could keep complication color in ambient mode. currently complications color automatically turns to white in ambient mode. There is a similar feature in Hands color.

Heavy performance issues with smooth seconds hand

It looks like that the smooth seconds hand does heavily affect system performance, as using the watch is really laggy then.

I wonder what the difference between other watch faces is, where the smooth seconds hand does not really affect system performance.

I'm using a Galaxy Watch 5 LTE running WearOS 3.5 (OneUI Watch 4.5).

can't install properly on galaxy watch 5 pro

I've installed the app on my galaxy watch 5 pro, but I can't open it. It doesn't show in the app list, but when I search it up on play store it is there, but the only action is to uninstall, not opening the app.
What to do?
Thanks
Emil
Screenshot_20230622_131836_vending
Screenshot_20230622_131822_vending

auto brightness ambient mode

Hi, on my Fossil Gen 5 watch some default watch faces and e.g. from play store the "Essential 3100" watchface do support auto brightness in ambient mode. Would that be possible with your watchface?

Btw. Still my favourite watchface. Thank you.

Custom colours

It'd be nice to be able to set custom colours instead of choosing from a list.

Icons (pictures) of complications are not displayed

The correct display of icons does not work on this dial. For example, if the complication of the Moon Phase is selected (where images of the moon are used) Then instead of the moon there is an empty space.
Also, if a complication is set for the background of the dial, it also does not replace the background.

Log for exaple...
2021-11-20 02:06:19.606 9118-9118/com.vlad1m1r.watchface E/Icon: Unable to find pkg=de.ludetis.wear2moonphase for icon Icon(typ=RESOURCE pkg=de.ludetis.wear2moonphase id=0x7f08003e)
android.content.pm.PackageManager$NameNotFoundException: de.ludetis.wear2moonphase
at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:436)
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:425)
at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:366)
at android.graphics.drawable.Icon.loadDrawable(Icon.java:334)
at android.widget.ImageView.setImageIcon(ImageView.java:618)
at com.vlad1m1r.watchface.settings.complications.picker.ComplicationPickerActivity.setComplication(ComplicationPickerActivity.kt:130)
at com.vlad1m1r.watchface.settings.complications.picker.ComplicationPickerActivity.updateComplicationViews(ComplicationPickerActivity.kt:112)
at com.vlad1m1r.watchface.settings.complications.picker.ComplicationPickerActivity.onCreate$lambda-5(ComplicationPickerActivity.kt:78)
at com.vlad1m1r.watchface.settings.complications.picker.ComplicationPickerActivity.$r8$lambda$OvoFmNp9Cizod5ABTlwLD0i_zVs(Unknown Source:0)
at com.vlad1m1r.watchface.settings.complications.picker.ComplicationPickerActivity$$ExternalSyntheticLambda0.onActivityResult(Unknown Source:4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.