我需要在一张竖屏的图片上旋转90度显示一个ImageView,由于我正在使用Picasso库进行缓存,无法自由访问位图对象,而使用支持库进行旋转时,我得不到应该得到的结果。
代码如下:
<ImageView
android:id="@+id/imageId"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_weight="1"
android:rotation="90"
android:gravity="center"/>
有没有办法我能达到相同的结果??
在Android 4.0或更高版本中,可以实现旋转。