cube-sdk
cube-sdk copied to clipboard
使用CubeImageView无法加载特大图片问题。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<in.srain.cube.image.CubeImageView
android:id="@+id/image_show"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="fitCenter" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
我在Fragment里用这个布局去加载一张图片(目的是加载一张图片宽度填满屏幕宽度,高度可以滚动). 平板设备屏幕横向尺寸宽度 2560,第一次加载能正常显示,Fragment返回后再打开这个图片显示的Fragment就无法显示。 是否是因为缓存设置问题?(图片尺寸不设置为fill_parent 则不会出现这种问题)