Two Time Zone selector For 12/24 modes

Dear All,

I have placed two time zone selector on the place and hided each depending on their time modes (12/24)

But even If I hide them, the upper layer one, is still clickable so the timezone for 12h mode is not showing correctly.

I hope I have explained it correctly.

Is there any way to achieve this?
Regards
Serdar.

Hello,
the top most element will always be the one responding to tap action, no matter of its actual visibility, no matter how many underlaying elements are set as button too.
Maybe you could make the two time selectors overlap only in the main area using different text alignment and stretching their overall area to side to make it accessible for touch. I guess it wont be perfect, but maybe for some monospaced fonts and only digital time it could work.image

@nowappdev - were you able to get this working? I want to do a similar thing.

Try it ,might work with what you want to achieve
Remember you are going to use up alot of space on a small watch face,
which is not very practical
Malcolm

I have exactly the same issue . Any other ideas how to resolved it in more practical way?

Sorry, there’s no solution.

The only way I know how to do this is stack two clocks one 12 and one 24
Then by having a mask image that is half clear and half the background so only one image shows. then the second image is an upside down version of the first mask.

They won’t be the same place but it will work.

I believe this is a feature request already in the system, if not I’ll add it.

Ron
Samsung Developer Program

Thanks, @r.liechty_SDP for your tip, but I don’t get it. Could you please provide more details?

You need to have a rectangle with the bottom half the color of your background and tito half clear and one that is the same but upside down so the bottom is clear and the top colored

Cover the one digital clock so it shows and the other one doesn’t then set a button action and change image and use the other one. so when they tap on the image the other one will show. Tap again and the original shows.

Ron
Samsung Developer Program

Thanks. Now I get it.
But as a result, I will have two digital clocks not placed in the same location, but one under the other. The same result I should get using conditions for 12h/24h clock built-in GWD.

But the case here is to have two clocks in the same location with the working action button.

In my opinion, there is a bug in GWD - inactive (hidden) objects should not raise a tapped (clicked) event - the button should work ONLY for active objects.

Regards, Bartek

Rename the attached file to .gwd and check how did I mean it. The example was made in version 2.0. The tap zone is always active for both digital clocks, but the one, that is currently displayed, can be “advertised” for touch. Timezones.zip (29.4 KB)

It is what it is, it is not a bug. Tap buttons do not have the ability to change how a digital time is parsed nor the ability to change what is active and what is not.

Ron
Samsung Developer Program

Thank you @Peter for preparing this example. This is exactly how I did it right now in my watch face - but I was looking for a better solution. It seems that it is the only way hot to do it.