Rotated image in ImageView
        Posted  
        
            by Lars D
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Lars D
        
        
        
        Published on 2010-05-09T15:18:26Z
        Indexed on 
            2010/05/09
            15:28 UTC
        
        
        Read the original article
        Hit count: 202
        
I want to show an arrow that indicates the direction towards a goal, using the orientation sensor and current GPS position. Everything works well, except that I want to rotate the arrow image in my ImageView.
The current code, which shows the arrow pointing upwards, is this:
ImageViewArrow.setImageResource(R.drawable.arrow);
What is the best solution for showing the arrow, rotated by N degrees?
© Stack Overflow or respective owner