안드로이드 개발을 시작한지 않마 되지 않은 개발자입니다.

HorizontalScrollView 를 사용하고 있는데 알수 없는 현상이 나타나는데 검색을 해봐도 관련된 내용을 찾을 수 없네요..

현상은 이렇습니다.


레이아웃구성은 이렇습니다.


<LinearLayout
        android:id="@+id/linearLayout3"   
        android:orientation="horizontal"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:background="#ff00ffff">
       
        <LinearLayout
            android:id="@+id/linearGraphLabel"
            android:orientation="vertical"
            android:layout_marginBottom ="30dp"
            android:layout_height="fill_parent"
            android:layout_width="80dp"
            android:background="#550011ff">
        </LinearLayout>
       
        <FrameLayout
            android:id="@+id/frameGraph"
           
            android:layout_height="fill_parent"
            android:layout_width="match_parent"
            android:background="#550033ff">
           
            <HorizontalScrollView
                android:id="@+id/scrollGraph"
                android:fillViewport="true"
                android:scrollbarAlwaysDrawHorizontalTrack="true"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="0dp"
                android:drawingCacheQuality="high"
                android:layout_marginBottom ="30dp"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">
                       
                <LinearLayout
                    android:id="@+id/linearScroll"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent">
                        <FrameLayout
                            android:id="@+id/frameGraphLayer"
                            android:layout_height="fill_parent"
                            android:layout_width="fill_parent"
                            android:background="#55aaaaaa">
                        </FrameLayout>
                </LinearLayout>
              
            </HorizontalScrollView>
          
        </FrameLayout>
      
    </LinearLayout>




스크롤 뷰에 가로로 긴 커스텀 뷰를 소스상에서 생성하여 HorizontalScrollView의 LinearLayout에 추가하였습니다.

그리고 파란색부분의 LinearLayout에 추가로 커스텀 뷰를 생성하여 추가하였습니다.


여기서 스크롤뷰를 좌우측으로 움직여 보면 스크롤이 오른쪽으로 이동하게 되면서 원래 스크롤뷰의 영역을 벗어나면서

파란색 Layout을 덮어버리는 현상이 발생합니다.

제일 좌측으로 스크롤된 상태는 정상적인것처럼 보이나 스크롤하는만큼 정확하게 덮어버리네요..

고수님들 힌트를 주세요