갤러리를 열고 선택한 이미지의 Uri를 받아서 비트맵으로 canvas에 출력했는데요
문제는 출력후 에뮬레이터에서 마우스로 휠을 움직이면 버튼들은 그대로 있는데
사진만 갑자기 확 사라지네요
그냥 스크롤이 내려가는게 아니라 아예사라지는건지 다시 아무리 움직여봐도 변함이없어요
로그를 봐도 일단 사진이 화면에서 사라지면 더이상 프로그램도 움직이지 않는 것 같고
왜이러는걸까요
친구 핸드폰을 빌려서 테스트 해봤는데
특정사진들이 안되는게 아니라 어떤사진을 불러와서 필터를 적용해서 색을 바꾸는데
언제는 정상적으로 끝까지 되고
또 언제는 갤러리에서 사진고를때 멈추고
또 언제는 사진 출력하고 1초만에 사진이 사라지고
또 언제는 출력후 필터적용해서 색바꾸면 갑자기 사라지고
다 같은 사진으로 해도 이래요 ㅠㅠㅠㅠㅠㅠㅠㅠ
2틀동안 사진보정 어플하나 만들어보려고 계속 밤새고있는데
진전이없네요 ㅠㅠ 도와주세요
혹시몰라 xml 소스도 첨부합니다
 
==================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout
     android:layout_width="fill_parent"
     android:layout_height="wrap_content">
 <Button android:layout_height="wrap_content"
  android:id="@+id/gallary_button" android:text="SELECT PHOTO" android:layout_width="wrap_content"></Button>
  <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="color"></Button></LinearLayout>
  <LinearLayout
  android:id="@+id/LinearLayout01"
  android:layout_height="wrap_content" android:gravity="center_vertical|center_horizontal" android:layout_width="match_parent">
  </LinearLayout>
</LinearLayout>
==================================
굵게 표시된 layout에
drawview draw = new drawview(this);
layout.addView(draw);
이런식으로 canvas 표현 했습니다. ]


아 그리고 지금 발견한 건데
버튼1을 맨위에두고
그밑에 저 리니어레이아웃을 두고
그 밑에 버튼2를 두었더니
(((
 ----버튼1
 ----레이아웃
 ----버튼2
)))
이 버튼2가 화면에서 사라지고 안나와요
사진을 추가하지않아도 애초부터 사라져있어요
레이아웃문제인가요?
지금 그래서 RelativeLayout으로 바꿨는데 그래도 그러네요 ㅠㅠ