- Posts: 339
- Thank you received: 28
Is the 'page swiper' UI component supposed to work?
- andrew
- Topic Author
- Offline
- User
-
Less
More
2 years 6 days ago - 2 years 6 days ago #3030
by andrew
Is the 'page swiper' UI component supposed to work? was created by andrew
I'm trying to build a scene in myDesigner where I have static content in the bottom half of the screen and can swipe through 2 or 3 'sub-screens' in the top half. I thought that's what the page swiper component was for. I created the main scene page, created two overlays with different content, added a page swiper to the main scene and added the two overlays to it in the 'Page Overlays' area. But when I display the scene either in the simulated remote in myDesigner or the real smartremote the page swiper area remains blank. Am I doing something wrong?
I note that none of the provided samples use the swiper.
Andrew
I note that none of the provided samples use the swiper.
Andrew
Last edit: 2 years 6 days ago by andrew.
Please Log in to join the conversation.
- Nillaz
- Offline
- User
-
Less
More
- Posts: 443
- Thank you received: 36
2 years 6 days ago #3031
by Nillaz
Replied by Nillaz on topic Is the 'page swiper' UI component supposed to work?
I originally had designs on doing something similar for organizing device settings but have never been able to get the swiper to work. The best I was able to do was to use the scrolling section widget as a poor man's version of this, but it was clunky and I scrapped the idea.
I'll be interested to see what feedback you get on this.
I'll be interested to see what feedback you get on this.
Please Log in to join the conversation.
- andrew
- Topic Author
- Offline
- User
-
Less
More
- Posts: 339
- Thank you received: 28
2 years 5 days ago #3032
by andrew
Replied by andrew on topic Is the 'page swiper' UI component supposed to work?
Yeah I want the sub-pages to snap across, not smooth scroll stopping at any point (I tried the scrolling area too). If I can't do it I suppose it will have to be popup overlays.
Andrew
Andrew
Please Log in to join the conversation.
- randyf
- Offline
- User
-
Less
More
- Posts: 32
- Thank you received: 2
2 years 5 days ago - 2 years 5 days ago #3034
by randyf
Replied by randyf on topic Is the 'page swiper' UI component supposed to work?
Nillaz, in your video, you had one screen where you were swiping left to pull in a screen "hidden" to the right (your lights, plugs, timers, etc. page), what control did you use there?
Last edit: 2 years 5 days ago by randyf.
Please Log in to join the conversation.
- andrew
- Topic Author
- Offline
- User
-
Less
More
- Posts: 339
- Thank you received: 28
2 years 5 days ago - 2 years 5 days ago #3035
by andrew
it looks like you're using the page swipe.
Andrew
Replied by andrew on topic Is the 'page swiper' UI component supposed to work?
That's a point. Just hereNillaz, in your video, you had one screen where you were swiping left to pull in a screen "hidden" to the right (your lights, plugs, timers, etc. page), what control did you use there?
Code:
https://youtu.be/QyypAcq2LBg?t=567
Andrew
Last edit: 2 years 5 days ago by andrew.
Please Log in to join the conversation.
- Nillaz
- Offline
- User
-
Less
More
- Posts: 443
- Thank you received: 36
2 years 5 days ago #3036
by Nillaz
If you have more than one additional page it has a significant drawback in that there is no detent and like Andrew I would definitely want it to snap from page to page. Smooth scrolling the way the scroller works requires too much precision for this type of work on a 3 inch screen. It would be way easier to setup, maintain, and use in practice if you could just use the page swiper, drop in a few overlays, and flick between them.
Replied by Nillaz on topic Is the 'page swiper' UI component supposed to work?
This would be super complicated to explain in depth, but the gist is that this is the one place where I did end up using the scrolling section widget locked to horizontal scrolling rather than vertical, in which the overlay that it is linked to has two more embedded overlays side by side locked to vertical scrolling. It's super kludgy to do it this way and I imagine that playing overlay-ception the way I am doing has a performance impact, but ultimately I was able to make it work out because there's only the "main activity" screen and the "settings" screen.Nillaz, in your video, you had one screen where you were swiping left to pull in a screen "hidden" to the right (your lights, plugs, timers, etc. page), what control did you use there?
If you have more than one additional page it has a significant drawback in that there is no detent and like Andrew I would definitely want it to snap from page to page. Smooth scrolling the way the scroller works requires too much precision for this type of work on a 3 inch screen. It would be way easier to setup, maintain, and use in practice if you could just use the page swiper, drop in a few overlays, and flick between them.
Please Log in to join the conversation.
Time to create page: 0.170 seconds