1. Download our Official Android App: Forums for Android!

Apps Rotating the listview cell

Discussion in 'Android Development' started by anoop4real, Mar 18, 2011.

  1. anoop4real

    anoop4real Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 18, 2011

    Mar 18, 2011
    2
    0
    5
    Hi,

    I am trying to make an app which gives the information about the flights and its timing to the user when he enters the flight number, I am able to bring the list of flights in a listview, but I want to enhance it by adding some animation to the cell like the one which we see in the boards at air port, basically i want the cell to rotate with reference to horizontal axis passing through the middle of the cell. Posting the link where you can find some images. I used rotationAnimation but could not obtain the required animation.

    Airport arrival boards - Google Search
     

    Advertisement

  2. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    Have you tried roatating something within the cell and not the cell itself?

    That is, make a seperate Relative or LinearLayout inside the root of the cell and rotate that.
     
  3. anoop4real

    anoop4real Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 18, 2011

    Mar 18, 2011
    2
    0
    5
    Hi,

    I actually tried the Rotateanimation in the getView method when i try to populate the lists from the row.xml, what happened is that the entire cell rotated with the pivotal point that i gave.

    -anoop
     
  4. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY
    You need to post some code in order for me to see what your trying to accomplish and why it's not working. Such as the latout xml and getView method.

    What pivot point are you using?
     

Share This Page

Loading...