7
私はスクロール可能な画像ピッカーを作成していますが、スクローリング中に各画像に表示したい情報があります。私の質問はギャラリーにイベントがあります画像は中央に配置されていますか?このイベントはスクロールするときに発生します。私はスクロールが発生し、新しいITENが途中1のとき、著者とタイトルTextViewsが更新取得したいギャラリーのイベントを「画像を中心にする」
<Gallery android:id="@+id/coverflow"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<TextView android:id="@+id/author" android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="Titulo livro"
android:layout_above="@id/coverflow" android:gravity="center" />
<ImageView android:id="@+id/div" android:layout_width="match_parent"
android:layout_height="wrap_content" android:src="@drawable/library_div"
android:layout_above="@id/author" />
<TextView android:id="@+id/title" android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="Author"
android:layout_above="@id/div" android:gravity="center" />
</RelativeLayout>
:
私のレイアウトは、ということです。
ヒント?
を。ありがとう! –
ありがとうございます。とても –