Android 2.2中使用Picasso和support库旋转ImageView不起作用

3

我需要在一张竖屏的图片上旋转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或更高版本中,可以实现旋转。

1个回答

4

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接