×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Animating ListView.currentIndex?

    While ListView is mostly controlled by user touching the screen, you sometimes need to set the current item (ListView.currentIndex) programatically. Is there any way to control the animation associated with this?

    Ok, here is an example: In the Parallax example in SDK (under modelview), you can swipe between multiple home screen. You can also switch between the screens by clicking the icons on the bottom:

    http://doc.qt.nokia.com/latest/decla...xview-qml.html

    Now, if you are on the first page and click the icon for the last page, you will see a very slow page transition I would like to replace that with something else. Is it possible??

    I have already tried to set a Behaviour on contentX but that didn't work. I also played with maximumFlickVelocity and alike, but those are platform dependent and undocumented and probably not related to this animation anyway.

    Any ideas?

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Animating ListView.currentIndex?

    Hi,
    You are talking about the highlight animation.
    ListView API exposes some properties which could be changed to customize the animation of the built-in highilight component.
    The properties I'm talking about are: highlightMoveDuration and so on.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    26

    Re: Animating ListView.currentIndex?

    You are correct, highlightMoveDuration does seems to do the job.

    Thank again gnuton, your help is very much appreciated!

Similar Threads

  1. Replies: 1
    Last Post: 2011-05-31, 09:23
  2. Animating svg image without SVGAnimator
    By keints in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2010-04-02, 21:30
  3. Animated Gif not animating - mms
    By transend in forum General Messaging
    Replies: 0
    Last Post: 2008-04-10, 13:28
  4. Animating Multiple Sprites
    By ziyaaf in forum Mobile Java General
    Replies: 1
    Last Post: 2007-07-27, 12:27
  5. animating separate Spriteson top of LayerManager
    By idrop in forum Mobile Java General
    Replies: 0
    Last Post: 2003-10-13, 15:38

Posting Permissions

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