Android Question NineOldAndroids(Solved example included)

Discussion in 'Android Questions' started by davelew1s, May 15, 2015.

  1. davelew1s

    davelew1s Active Member Licensed User

    Hi!
    I recently discovered this lib by Informatix and i've incorporated some of the features into my app but am stuck with one. I want to rotate a label about it's center, i've played with the properties but cannot find a solution. Any help or pointers? thanks Dave.
     
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    You need to set the Pivot point. There is a class i think called ViewHelper to do that.
     
    NJDude likes this.
  3. davelew1s

    davelew1s Active Member Licensed User

    Thanks for your reply thedesolatesoul I thought i would have to set the pivot point but it's how!.
    I had a look at Viewhelper but that didn't help me. I'll keep playing.
    Dave.
     
  4. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Peter Simpson and NJDude like this.
  5. davelew1s

    davelew1s Active Member Licensed User

    OK thedesolatesoul! I thought this would solve my problem ... but it dosen't. I've tried various ways but can't get it to rotate the about pivot point. I've sent a zip file of my tester, am I doing it right?
    Thanks for your help Dave.
     

    Attached Files:

  6. thedesolatesoul

    thedesolatesoul Expert Licensed User

    What is this line supposed to do:
    Code:
    AnimRotateY.InitializeFloat(Panel1, AnimRotateY.PROPERTY_PIVOT_Y, 0360"")
     
    NJDude likes this.
  7. thedesolatesoul

    thedesolatesoul Expert Licensed User

    You should use:
    Code:
    AnimRotatY.InitializeFloat(Panel1, AnimRotatY.PROPERTY_ROTATION_Y, 0360"")
     
    NJDude and davelew1s like this.
  8. davelew1s

    davelew1s Active Member Licensed User

    I needed to use 'n.setPivotx' aswell to get the rotation I want.
    Thanks again Dave.
     
  9. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Yes, so it is working the way you want it to now?
     
    NJDude likes this.
  10. davelew1s

    davelew1s Active Member Licensed User

    More or less just need some fine tuning. The
    noaViewHelper has given me alot to play with.
    Thanks Dave.
     
  11. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Cool.
    It would be nice if you could change the thread title and attach your solution at the end, in case someone else needs help with the same thing.
     
    RandomCoder and NJDude like this.
  12. davelew1s

    davelew1s Active Member Licensed User

    Thanks to thedesolatesoul I was able to solve my problem ... along the way I found other rotations which are in the example.
    Hope it hepls.
    Dave.
     

    Attached Files:

    RandomCoder likes this.
  13. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Thank you. Not only is the example useful, this is the most efficient use of the forum by posting the solution as an example and changing the thread title.
     
    Harris and DonManfred like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice