0

一部のデバイス (Samsung タブ (バージョン 3.0)、Nexus (バージョン 4.1)、および Htc one v (バージョン 4.0)) では、すべてではありません (galaxy (バージョン 2.2)、Htc WildFire (バージョン 2.3.3) など)、背景画像スクロール中にListView/GridViewが消える

1-動かない時はこんな感じ(外側の丸い白枠を見てください)

ここに画像の説明を入力

2-しかし、スクロール中に外側のフレームが数ミリ秒間消えます(ちらつきを示します)

ここに画像の説明を入力

私の膨らんだxmlレイアウト(converView)は次のようになります

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="vertical" >

    <LinearLayout
        android:id="@+id/movieLayout"
        android:layout_width="match_parent"
        android:layout_height="320dp"
        android:background="@drawable/frame"
        android:padding="4dp" >

        <!-- android:background="@drawable/movie_image_frame_shape" -->

        <ImageView
            android:id="@+id/movieImg"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/artwork_moviehomepage" >
        </ImageView>
    </LinearLayout>

    <TextView
        android:id="@+id/movieName"
        style="@style/textviewStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/movieLayout"
        android:layout_centerHorizontal="true"
        android:ellipsize="end"
        android:gravity="center_horizontal"
        android:lines="2"
        android:textColor="@color/white"
        android:textSize="@dimen/NORMAL_TEXT_SIZE"
        android:textStyle="bold" >
    </TextView>

    <TextView
        android:id="@+id/movieReleaseDate"
        style="@style/textviewStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/movieName"
        android:layout_centerHorizontal="true"
        android:singleLine="true"
        android:textColor="@color/text_color_yellow"
        android:textSize="@dimen/NORMAL_TEXT_SIZE"
        android:textStyle="bold" >
    </TextView>

    <ImageView
        android:id="@+id/prebook_ribon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="2dp"
        android:layout_marginTop="4dp"
        android:src="@drawable/prebook_ribbon" />

</RelativeLayout>

グリッドビューはこれです

  <GridView
        android:id="@+id/movieImgGridView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@+id/header"
        android:layout_centerInParent="true"
        android:layout_marginBottom="5dp"
        android:layout_marginTop="10dp"
        android:cacheColorHint="@color/transparent"
        android:gravity="center"
        android:horizontalSpacing="@dimen/movie_img_horizontal_spacing"
        android:listSelector="@color/transparent"
        android:numColumns="3"
        android:paddingLeft="12dp"
        android:paddingRight="12dp"
        android:scrollbars="none"
        android:stretchMode="columnWidth"
        android:verticalSpacing="10dp" >
    </GridView>
4

0 に答える 0