안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요??
이번에 ListView 로 모양을 짜고 있는데 ListView 에 들어있는 아이템을 스크롤하면 사진처럼 뒷배경이 검개 변해버립니다
( 기본 백그라운드는 흰색입니다. )
백그라운드를 투명을 줘봐도 똑같네요..
<!-- 몸통 -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/list_background_new">
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="10dip"
android:divider="#00000000"/>
<TextView android:id="@android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textColor="#696969"
android:text="@string/no_notes"/>
</LinearLayout>
어떤 옵션을 줘야 저런 현상이 안생길까요..?




리스트뷰에
android:cacheColorHint="#00000000"
이걸 추가하세요...