Quantcast
Viewing all articles
Browse latest Browse all 8068

How to influence ScrollableView rendering?

Hi,

can anybody tell me how the views in a Ti.UI.ScrollableView are rendered?

So far, I experienced the following when testing (on both iOS and Android)

  • the first view that is displayed and its neighbor view gets rendered
  • swiping to the second page, draws the second view and renders the third view
  • from page 2:
    • swiping back to page 1, destroys the third view
    • swiping to page 3, destroys the first view

...and so on.

How can I render all views and prevent the ScrollableView from destroying the views?

In my case, the problem is, that I display a Map on page one, wich shows the users current position. When this view gets destroyed (by paging to 3rd view):

  • on iOS, it displays another region somewhere in the atlantic ocean with huge delta
  • on Android, it searches for the position again and updates in the MapView

Although Android behaves better, because it doesn't change the region in the map, my question is:

How can I tell the ScrollableView that it should save the state of its views (on both platforms) instead of destroying and drawing it again?

Thanks in advance for every hint and tip,

Manuel

TiStudio 3.1.1.201306112235, Mobile SDK: 3.1.1 GA


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>