私は次の問題があります。私はギャラリーでフォームを作ったのですが、画像を含む代わりにギャラリーにはクラスからのアイテムが含まれていました。ギャラリーの先頭と末尾に
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery android:id="@+id/galleryid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:spacing="0dip"
android:padding="0dip"
android:layout_weight="1" />
をギャラリーのアイテム:私は使用して画像間のスペースを削除
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="75dip" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center_horizontal" android:background="#ffffff">
<TextView android:id="@+id/frame_number" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="-" android:textSize="12dip" android:textColor="#ffffff" android:background="#000000" android:gravity="center" />
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="horizontal" android:gravity="center_horizontal">
<TextView android:id="@+id/frame_shot1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
<TextView android:id="@+id/frame_shot2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-" android:textSize="18dip" android:textColor="#000000" />
</LinearLayout>
<TextView android:id="@+id/frame_total" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="---" android:textSize="38dip" android:textColor="#000000"/>
</LinearLayout>
buuuuuuuuuuuuuuuuut、私は問題を抱えて、いくつかの空白は、始まりと終わりの時がありますアイテムのないギャラリー。実際には、私のギャラリーには、実際には水平方向にスクロールすることができるアイテムがたくさんありますが、ギャラリーの左端の最初のものが最初のアイテムで、最後はuスクロール右の項目は正しい項目です。
編集それでも08/16バックプロジェクトで同じ問題で、ここで私は(私はそれを取り除くためにしようとしているものを正確に何であるの画像が先頭に黒いスペースである去るもあります他の側のギャラリーの終わり)
解決策をお探しですか? –
こんにちはミーナとエールkあなたはこの問題の解決策を見つけましたか? – SRam
こんにちはSRam、Mina、Ale Kは上記の問題の解決策をお探しですか? – indrajeet