搜索找到 40 个匹配

AlainProvist
16 5月 2021, 10:29
版面: Other topics
主题: Show your current watchface on the watch [Stratos]
回复总数: 8
阅读次数: 11664

Re: Show your current watchface on the watch

As usual, me doing experimentation for my next watchface, but here is a glimps of what it looks like (font and layouts are temporary (taken back from my previous animated butterfly)).

This is an animated watchface totally done in 8c to look like exactly the same in normal and sleep mode. This is ...
AlainProvist
09 11月 2020, 23:27
版面: Manuals and instructions
主题: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)
回复总数: 47
阅读次数: 278535

Re: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)

DxP, You can have the month and the day separately with "month_text" and "day". "mon" does not exist actually :p.
AlainProvist
21 10月 2020, 18:21
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Oh I guess I totally missed this part :s Thx for the info.
AlainProvist
21 10月 2020, 18:13
版面: Manuals and instructions
主题: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)
回复总数: 47
阅读次数: 278535

Re: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)

Good to know, and thx for the info. I wrongly thought this option was only usable with greatFit-based apk watchfaces.
AlainProvist
19 10月 2020, 21:42
版面: Manuals and instructions
主题: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)
回复总数: 47
阅读次数: 278535

Re: [Tutorial] How to create WFZ watchfaces for Stratos 3 (new style / GTRWidget)


About weather, as now is working correctly if you use AmazMod to push the weather to clock (need AmazMod service on watch too). I'm using it on my Stratos 3.

And about ultra mode? Have you found a way to use a custom watchface on this mode? Seem impossible for me.

fcaronte so, are you ...
AlainProvist
15 10月 2020, 11:58
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

This is even more insane because after a few minutes, the watch just freezes and you need to hardreboot it. I even got a more crazier bug that made the hours roll like seconds and the minutes likes milliseconds... on all watchfaces even the stock ones until I rebooted...
AlainProvist
14 10月 2020, 12:15
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

And now another bug ruining 2 days of work: offseting the position of a timehand item outside the left side of the screen results in an ugly pixel glitch of the rendered image in sleep mode, depending the rotation of the image...

<Item type="min" x="160" y="160" xCenter="-60" yCenter="0" config ...
AlainProvist
12 10月 2020, 11:34
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

They just read the char image for ';' in the slpt widget, no matter what the unit type is... *insert profanity there*

SlptPictureView ttSeq = new SlptPictureView();
Bitmap ttunitNum = getCharBitmapByFont(this.mFont, ';', need_8c);
ttSeq.setImagePicture(getCharBitmapByFont(this.mFont, '.', need ...
AlainProvist
11 10月 2020, 13:14
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

It's supposed to be "!" char in the charset for miles. I did not verify this work correctly though...

By the way, I just released my Ourobos watchface: https://amazfitwatchfaces.com/pace/view/6996
AlainProvist
11 10月 2020, 07:49
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

OMG you're right, the code is bugged there too:

if (this.mDatatype == 1) {
this.mDataResult = new BigDecimal(values[0].intValue()).floatValue();
this.progress = this.mDataResult / ((float) values[1].intValue());
if (this.mAdditiveBitmapCount > 0) {
this.mAdditiveIndex = ((int) (this.progress ...
AlainProvist
10 10月 2020, 17:46
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

That's funny because I just litterally lost 2 hours figuring why 1 of my graduation in my config list was not showing in sleep mode when all the other were.

It's not the first time this happens to me and I think I finally found the reason. It seems to be caused by the bit transparency of images ...
AlainProvist
08 10月 2020, 21:28
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

It's case sensitive:

<WatchFaceComponent type="goal" dataType="1" x="250" y="85" config="@wfz/steps/goal.png" />

Be aware that the goal limit seems to be hardcoded to 8000 steps. So the image for the goal will only be displayed once the goal is reached.

About graduation it's a watchfaceitem and ...
AlainProvist
08 10月 2020, 17:02
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Graduation is just an image you can draw separately from your background image in case you want to customize it differently from the background.
AlainProvist
07 10月 2020, 20:17
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Indeed the android api used here is a bit awkward. It's using a rotation matrix to do the draw, which for some weird reason is using the center of the screen as the zero reference instead of the top left corner for usual x, y draw.
Because of this, the x, y values are used to define the rotation ...
AlainProvist
06 10月 2020, 17:15
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

For point 12 you're totally right, it is only usable with watchface items. This will work for backgrounds, graduations, timehand, datawidget and timedigital only.

For point 2, the weather data is fucked up because it binds the second weather provider to the components (gtr widget with weather type ...
AlainProvist
05 10月 2020, 20:59
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Great tutorial. I think there are some minor mistakes like the data type explainations where you tell which datatype is or not working with the gtr widgets. You should put the datatype number in front of what it is instead of using 1. 2. etc because it's a bit misleading :p.

For the folders slpt ...
AlainProvist
04 10月 2020, 22:17
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

代码: 全选

2  - 8  - 4
|    |    |
66 - 72 - 68
|    |    |
34 - 40 - 36
or any of these values +1 is the exact same ;)
AlainProvist
04 10月 2020, 16:52
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components



Yes because 66 is 2 (left align) | 64 (vertical centered) same for 69 which is 64 | 4 (right centered) | 1 (doesn't matter wether 1 or 0) and same for 72 which is 8 (horizontal centered) | 64


Can you this more explain?


I don't know how well you master bitfields in programming, but to make ...
AlainProvist
04 10月 2020, 16:36
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Well the only benefit of it is to have a better display when raising the handwrist. Having the full def backround and possibly the fonts too is cool, but in that case using the normal settings when raising the handwrist would have been simpler...
AlainProvist
04 10月 2020, 16:18
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

I'm starting to wonder if the only reason why the battery is draining is that "support26w" option. I've spent most of my day comparing a stock internal watchface, my watchface with and without the support26w mode. I looked at and compared the logcat for the 3 of them. And it seems that only my ...
AlainProvist
04 10月 2020, 07:46
版面: Closed topics
主题: BATTERY
回复总数: 2
阅读次数: 1007

Re: BATTERY

craigmorgan Are you using any WFZ watchface? If yes, did you ever experienced this battery drain with a stock watchface?

I'm pretty sure the support26w option set to true in any wfz watchface could be one of the possible causes.
AlainProvist
03 10月 2020, 19:15
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

I just found out that the backgroud watchfaceitem is actually binding the full res image to both 26w and full res widget. This explains why the image in slpt or 26w folder is never used for the background. If you want the slpt folder's image to be used you need to declare a watchfacecomponent of ...
AlainProvist
03 10月 2020, 17:59
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Haha thanks for fixing that (and not baning me for losing my patience actually figuring the if statement was the culprit :D )


The code I was refering is this one:
code for slpt centering:

public static void setLayoutAlign(SlptViewComponent layout, int Align) {
layout.alignX = 2;
layout.alignY ...
AlainProvist
03 10月 2020, 13:25
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

Yes because 66 is 2 (left align) | 64 (vertical centered) same for 69 which is 64 | 4 (right centered) | 1 (doesn't matter wether 1 or 0) and same for 72 which is 8 (horizontal centered) | 64
AlainProvist
03 10月 2020, 09:45
版面: Closed topics
主题: Question about the xml components
回复总数: 66
阅读次数: 17701

Re: Question about the xml components

For the reccords, I'm seriously considering to "fix" and improve the huamiwatchfaces app if I find a way to recompile and re-odex it.


Edit: I think I may have found why the alignment is broken in slpt mode.
*off topic* Fu**ing code display that can't support if followed by brackets!!!!*end off ...

去高级搜索