×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    41

    LWUIT list scrolling is slow whenever list cells contain long strings

    Hi Experts!

    I noticed that LWUIT list scrolling is significantly impacted by the length of the string inside its cells. It seems like the string trimming algorithm on labels is executed each time the paint method is called and the longer the string is, the slower the scrolling becomes. I thought about writing a function to "pre-trim" the string and save it to memory before it gets rendered by the list but before doing it, I was thinking if there is an easy way around this. I know that NokiaListCellRenderer does this for you but their cell view is quite simple and I need a more elaborate cell layout so that won't work for me.

    Thanks!
    Jim

  2. #2
    Registered User
    Join Date
    Feb 2013
    Posts
    41

    Re: LWUIT list scrolling is slow whenever list cells contain long strings

    Nobody? I guess there is no simple way of doing this. Anyway, I've implemented my own trimming algorithm and cached the trimmed string in memory so that LWUIT textbox does not have to recompute it over and over again. This improved the performance a lot.

Similar Threads

  1. LWUIT Horizontal list scrolling gimping vertical form scrolling
    By Gureen.Ryuu in forum Mobile Java UI and User Experience
    Replies: 0
    Last Post: 2013-11-28, 11:21
  2. Add list after showing form (hack for lwuit s40 list bug)
    By xuanphung001 in forum Mobile Java General
    Replies: 2
    Last Post: 2013-04-24, 03:15
  3. lwuit list +sub list its need to show sub list
    By babu7575 in forum Mobile Java General
    Replies: 0
    Last Post: 2011-04-04, 14:12
  4. Replies: 2
    Last Post: 2007-02-27, 16:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •