Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用CubeImageView无法加载特大图片问题。 #63

Open
leveychen opened this issue Oct 27, 2015 · 0 comments
Open

使用CubeImageView无法加载特大图片问题。 #63

leveychen opened this issue Oct 27, 2015 · 0 comments

Comments

@leveychen
Copy link

<?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 则不会出现这种问题)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant