Right way to handle scrollable content

Hi guys,

I wanted to ask if somebody could give me a hint in handling scrollable content. Let's assume I have a text field shown on a watch, but the content of the text field makes it bigger then the viewable area. At the moment I am handling this manually by dealing with the pageup/pagedown buttons and adjust the offset of the text field for it to scroll. I cannot imagine this to be the right way to do such things, is it?

Thanks!

Bye
  • It's something you do have to do yourself. I've done code that will split a long string over multiple lines, and I believe franco posted something like that that also takes into account round screens where the lines in the middle can be longer than those at the top/bottom. As far as scrolling, you could do a line at a time or a page at a time, and it's something you need to code yourself. When doing so, you may also want to consider touch devices, where there's no up/down button, and swipes are usually used instead.
  • It's something you do have to do yourself. I've done code that will split a long string over multiple lines, and I believe franco posted something like that that also takes into account round screens where the lines in the middle can be longer than those at the top/bottom. As far as scrolling, you could do a line at a time or a page at a time, and it's something you need to code yourself. When doing so, you may also want to consider touch devices, where there's no up/down button, and swipes are usually used instead.


    Thanks for the information.

    About touch: I thought the BehaviorDelegate is there to make sure that one can handle button based and touch based devices in the same way. So for touch devices scrolling must be handled separately?

    Bye
  • Ok, got it. BehaviorDelegate extends InputDelegate, so I can catch the swipe event also. Thanks.
  • I think harry already made something like this with his Fortune Quote widget.
    Source code available: http://starttorun.info/connect-iq-apps-with-source-code/