Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add progress bar or ARC and auto regenerate function. #2

Closed
Alpaca131 opened this issue Oct 1, 2022 · 18 comments · Fixed by #5
Closed

Add progress bar or ARC and auto regenerate function. #2

Alpaca131 opened this issue Oct 1, 2022 · 18 comments · Fixed by #5

Comments

@Alpaca131
Copy link
Contributor

Alpaca131 commented Oct 1, 2022

Might be useful.
I'm working on this in my fork.

@ZoLArk173
Copy link
Owner

Below is my original prototype. I think you would like to design something like that. Unfortunately, it is kind of impossible to do right now. Whenever I place an arc in front of a list, it will cover the list. It seems like the middle of the arc is solid, which is really weird. Thus, I think it is a bug that we can only wait until software update to fix it. Or design in another way.
Prototype
By the way, the screenshoot feature added in the app is broken. It will take a corrupt screenshoot in this app.

@Alpaca131
Copy link
Contributor Author

I see.
I'll send a feedback to dev team on slack.
Their response is quite fast so I hope they'll fix it soon.
However, I thought another way: use image animation to make a progress bar on somewhere on the screen.
(Make 30 images of progress bar and animate it.)
Is this seems possible?

@ZoLArk173
Copy link
Owner

I just tried it. Unfortunately it is still broken. I cannot make the image animation in front of the scroll list. This might be another bug or limitation.
Here is the png animation I made. Maybe you can figure it out.😆
arc.zip

@Alpaca131
Copy link
Contributor Author

Alpaca131 commented Oct 2, 2022

Can I have the code you've tried?
I'm new at Zepp OS, (and I'm even struggling to build my own app) so I'm glad if I can edit the code you wrote and try several ways I came up with.

(I simply just want to show an image, but somehow my app doesn't work...)

@Alpaca131
Copy link
Contributor Author

Alpaca131 commented Oct 2, 2022

btw, I meant to put the progress bar on here(yellow part) or here(blue part).
I think this will work cause it won't cover any items.
(Though, it looks a lot nicer if we can put the progress ARC around the watchface.)

Screenshot_20221002-174755_Pixel Launcher~2

@ZoLArk173
Copy link
Owner

Can I have the code you've tried? I'm new at Zepp OS, (and I'm even struggling to build my own app) so I'm glad if I can edit the code you wrote and try several ways I came up with.

(I simply just want to show an image, but somehow my app doesn't work...)

I have pushed the code to 2-Add-refrash-animation branch. Feel free to try.

@ZoLArk173
Copy link
Owner

btw, I meant to put the progress bar on here(yellow part) or here(blue part). I think this will work cause it won't cover any items. (Though, it looks a lot nicer if we can put the progress ARC around the watchface.)

Screenshot_20221002-174755_Pixel Launcher~2

That is actually a good idea. I think I will implement the auto refresh first. Then add the animation.

@Alpaca131
Copy link
Contributor Author

Ok! Maybe I can work on animation while you're implementing auto refresh.
I added the image in my repo as my first work.

@Alpaca131
Copy link
Contributor Author

Alpaca131 commented Oct 3, 2022

#3
I managed to do it by using ARC!
You can move 8°/sec to count 30 seconds.
I couldn't put ARC in front of the list, so I adjusted the height of the list and the angle of ARC, so the scroll-list won't cover up ARC.

Method with progress bar didn't work because it wasn't able to put an item in front of scroll-list.

@ZoLArk173
Copy link
Owner

#3 I have compiled your code, and I think the solution is less than ideal, specially when there is more than one item in the list. Thus, I think of a workaround that the ark put at the side of the screen. It seems like the scroll list will always be at the top.
193421931-52125c89-99e5-4140-9a86-0ac8a758ce5b
(The gray circle is the watch screes border)

@Alpaca131
Copy link
Contributor Author

#3 I have compiled your code, and I think the solution is less than ideal, specially when there is more than one item in the list. Thus, I think of a workaround that the ark put at the side of the screen. It seems like the scroll list will always be at the top.
193421931-52125c89-99e5-4140-9a86-0ac8a758ce5b
(The gray circle is the watch screes border)

Yes.
It's true that if there's more than one card, it's hard to see another one.
(Cause I shortened the height of the scrollable -list.)
IMG_LMC_8.43 Oct 22_45.poco f3 (1)~2.jpg

@Alpaca131
Copy link
Contributor Author

Alpaca131 commented Oct 3, 2022

You're new idea was nice! so I coded it.
Calculating every second so it will work fine even after the screen got off.
Commit

@ZoLArk173
Copy link
Owner

I have merged your code. Good job! I also edit some code to let the ark auto resize according to the screen size.

@Alpaca131
Copy link
Contributor Author

Alpaca131 commented Oct 4, 2022

I have merged your code. Good job! I also edit some code to let the ark auto resize according to the screen size.

Oh I've mistakenly set the fixed width and height.
thank you for fixing it!

@Alpaca131
Copy link
Contributor Author

@ZoLArk173 ARC frame images are still in assets/trex-2. I forgot to remove those files.

@ZoLArk173
Copy link
Owner

I removed these files and add auto refresh functionality. Also add a background for the arc!

@Alpaca131
Copy link
Contributor Author

I removed these files and add auto refresh functionality. Also add a background for the arc!

I love this better UI. 😄

@Alpaca131 Alpaca131 reopened this Oct 7, 2022
@Alpaca131
Copy link
Contributor Author

Accidentally closed. Sry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants