android Programming Glossary: rotateimageview
Rotating an ImageView like a compass (with the “north pole” set elsewhere) http://stackoverflow.com/questions/7978618/rotating-an-imageview-like-a-compass-with-the-north-pole-set-elsewhere azimuth azimuth 360 This is where we choose to point it float direction azimuth LocationObj.bearingTo destinationObj rotateImageView arrow R.drawable.arrow direction Set the field if baseAzimuth 0 baseAzimuth 45 fieldBearing.setText S else if baseAzimuth.. 0 baseAzimuth 360 fieldBearing.setText SE else fieldBearing.setText And here's the method that rotates the ImageView rotateImageView private void rotateImageView ImageView imageView int drawable float rotate Decode the drawable into a bitmap Bitmap bitmapOrg.. SE else fieldBearing.setText And here's the method that rotates the ImageView rotateImageView private void rotateImageView ImageView imageView int drawable float rotate Decode the drawable into a bitmap Bitmap bitmapOrg BitmapFactory.decodeResource..
|