You can add a TextView to your layout and set Bitmap for it.
ImageView yourView = (ImageView)findViewById(imageviewid); Bitmap bitmap = decodeSampledBitmapFromFile(file.getAbsolutePath(), 1000, 700); yourView.setImageBitmap(bitmap);
Perhaps you can use RotateAnimation in the view (ImageView installed in Bitmap) that you want to rotate, and remember to set the animation to fillAfter=true and duration=0 .
<?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="90" android:toDegrees="180" android:pivotX="50%" android:pivotY="50%" android:duration="0" android:startOffset="0" />
Now you only need to inflate the animation in the view
Animation rotation = AnimationUtils.loadAnimation(this, R.anim.rotation); yourView.startAnimation(rotation);
Or you can just do it yourView.setRotation(angle) using API >= 11 .
source share