0
나중에 Android 2.3.3 용 애플리케이션을 개발 중입니다. 활동에서 나는 탭 호스트를 사용합니다. 첫 번째 탭에는 사진을위한 호출기가 있고, 두 번째 목록에는 전체 레이아웃에 배경 이미지가 있습니다. 내 장치 안드로이드 2.3.6에서 테스트 할 때 아무런 문제가 없다. 내 문제를 안고있다. 목록을 스크롤하면 해당 배경이 흰색으로 변하고 상호 작용을 멈 추면 그 배경이 레이아웃의 배경으로 반환됩니다. 안드로이드 버전으로 인한 문제입니까? 그것을 고칠 무언가를 할 수 있습니까? 이것은 내가 놓친 것을 보았을 때를 대비 한 레이아웃 파일입니다.탭 호스트 레이아웃의 ListView가 올바르게 렌더링되지 않습니다.
<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tabHost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/panel_start">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:layout_weight="1">
<RelativeLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
<RelativeLayout android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:background="@drawable/panel_start" >
<ListView
android:id="@+id/videos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</ListView>
</RelativeLayout>
</FrameLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_marginBottom="-4dp"/>
</LinearLayout>
확인 주어진이 당신의 배경 숙박을 사용하여
ListView
이 줄을 시도! – Libathos