갤러리랑 캡쳐해서 가져온 이미지 들을
화면에 가로로 쭉 다 보여주고 싶은데요.
제가 갤러리랑 캡쳐를 통해 받아온 이미지를
동적으로 ImageView에 넣어서
LinearLayout 에 넣는 방식으로 하고 있습니다.
<ScrollView
<LinearLayout
.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal" >
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/imagesView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal" >
이런식으로 바로 위 마지막 LinearLayout에 동적 ImageView를 넣어서
가로로 스크롤 하면서 이미지들을 보여주고 싶은데요
되기는 하는데 이미지를 추가하면
먼저 보여진 이미지들이 좌로 밀리면서 사라집니다.
이미지들 크기가 문제인가요?