Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Scrollview behavior on Android

I have installed the KitchenSink app, both on iPhone and Android. I am particularly looking at the scrollview demo with the page management + pageControl.
Is there a way to have the exact behavior between the 2 phones? I am looking at swiping left and right between pages (views) and having a page control object on Android as well.

— asked November 30th 2010 by Olivier Brand
  • android
  • pagecontrol
0 Comments

2 Answers

  • The page control object is not currently working on android and a fix won't be in the 1.5.0 release since we're wrapping that up. It should show up in a future release.

    — answered December 1st 2010 by Don Thorp
    permalink
    0 Comments
  • Oliver

    Following on from what Don has said, as a workaround in the meantime, it would be quite easy to build your own custom control, using coloured views with rounded corners (to make them spherical), and to change their colours depending on the view being shown. Use the swipe event with the currentPage property to determine which view is being shown, and fire a custom event to change the colours.

    Hope you know what I mean.

    — answered December 1st 2010 by Paul Dowsett
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.