android-imageview
Difference between setAlpha and setImageAlpha
ImageView.setAlpha(int) has been renamed to ImageView.setImageAlpha(int) to avoid confusion with the new method View.setAlpha(float) introduced in API level 11. View.setAlpha(float) is a general method available on all Views, including ImageView. It applies the specified opacity to the whole view. To achieve this, by default the system creates a temporary buffer (a hardware layer) where the … Read more
Rotating an ImageView like a compass (with the “north pole” set elsewhere)
Your rotateImageView function should work just fine, however there are some things that needs to be changed in your rotation calculations. //This is where we choose to point it float direction = azimuth + LocationObj.bearingTo( destinationObj ); rotateImageView( arrow, R.drawable.arrow, direction ); The problem is that bearingTo will give you a range from -180 to … Read more