Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Performance ScrollView with StackLayout vs TableView (WP)

$
0
0

Hi all

In my app I have to show detail-pages with a lot of data (Labels with variable length of text, Buttons, Images).
=> See .pdf in attachment with “worst-case” (most data).

The data are loaded from web-service and then showed on a page with StackLayout in a ScrollView. The StackLayout is generated dynamically, depending on filled data (if some data, e.g. an image, are not filled, there is also no image added to the StackLayout).
In iOS and Android, it takes about 1-2 seconds until the (“worst-case”) detail-page is showed (including query the web-service). This is O.K. (as there are many data to show).
But unfortunately in WP, it takes over 10 seconds what is not usable.
I have tried to change the whole logic to ListView but was not able to bring it at work (and therefore I also have to change the central web-service).

I have not found any useful information’s about performance-comparison between the objects/layouts and especially nothing about Windows-Phone (what is my “problem-child”).
I don’t know, what is the reason, that WP (on a fast device -> Lumia 930) is so slow compared with iOS and Android (ScrollView? / StackLayout / something other…?).

Principally I think, I should be able to change my page from ScrollView with StackLayout to TableView. My findings (can be wrong):
- Should be scrollable “out-of-the-box” (without additional ScrollView)
- Should meet my needs (dynamically add controls, using Buttons, Labels (with variable text-lengths), Images)

But.. will this be faster (especially on Windows-Phone)?

Can anybody tell me:

  • Should a TableView be faster as a ScrollView with StackLayout (especially on WP)?
  • Are my findings above correct (should I be able to do my stuff with TableView)?
  • Do you have other suggestions to enhance the performance - especially on WP?

Thanks for any answer / suggestion.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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