Я устанавливаю ресурс изображения (jpeg) в ImageView с размерами 877x3719. Однако, когда я запускаю приложение, он говорит мне:Изображение магически увеличивается в размерах при установке в ImageView
W/OpenGLRenderer﹕ Bitmap too large to be uploaded into a texture (2631x11157, max=4096x4096)
Это ровно утроит размеры оригинального изображения. Кто-нибудь знает, как и почему он утроит размеры без каких-либо изменений в моем java-коде, который говорит об этом? Ниже расположение XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/scrollView2" >
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/testlay">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView1"
android:contentDescription="@string/imageph" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView2"
android:contentDescription="@string/imageph" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView3"
android:contentDescription="@string/imageph" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView4"
android:contentDescription="@string/imageph" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Нет ссылок на какие-либо чертежи там, как вы устанавливаете изображение на своих ImageViews? Я предполагаю, что ваш drawable находится в папке 'drawable', попробуйте поместить ее в' drawable-nodpi'. –