2013-03-04 4 views
0

가로로 스크롤하려는 8000 픽셀 길이의 이미지가 있습니다. ImageView로 이미지를 HorizontalScrollView에 삽입하고 실제 장치 (Samsung Galaxy Nexus)에서 실행하면 스크롤바에 이미지로드가 표시되지만 이미지가 표시되지 않습니다. 모든 것이 android xml 뷰어에 올바르게 표시됩니다. 다음은 horizontalScrollView 내 XML이다 : 나는 여러 가지 다른 레이아웃과 자신의 이미지를 배치 시도ImageView가 안드로이드에 HorizontalScrollView의 내부에 표시되지 않습니다.

<HorizontalScrollView 
    android:id="@+id/horizontalScrollView1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignParentBottom="true" 
    android:layout_alignParentLeft="true" 
    android:layout_below="@+id/TableRow01" 
    android:scrollbars="horizontal" > 

    <LinearLayout 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" > 

     <ImageView 
      android:id="@+id/imageView1" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_marginBottom="14dp" 
      android:src="@drawable/longimage" /> 
    </LinearLayout> 

</HorizontalScrollView> 

,하지만 아무것도 장치에서 작동하지 않았다. 미리 감사드립니다.

+1

작은 이미지로 시도해보십시오. 크래시 로그를받지 못하셨습니까? – Triode

+0

아 감사합니다! 오류 로그가 있습니다. 비트 맵이 너무 커서 텍스처로 업로드 할 수 없습니다. 그러면 이미지를 어떻게 업로드합니까? – user2096732

답변

0

imageView의 매개 변수를 match_parent로 변경할 수 있습니다.

+0

나는 그것을 또한 시도했다 : / – user2096732

관련 문제