Gallery - Scroll via touch doesn't work
<p>I have problem with a Gallery. I can't scroll via touch. Scrolling via DPAD or trackball works fine.</p>

<p>Here is some code:
The xml layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="vertical" android:layout_width="fill_parent"
 android:layout_height="fill_parent" android:gravity="center_vertical"&gt;
 &lt;Gallery android:id="@+id/Gallery_Main" android:layout_width="fill_parent"
  android:layout_height="wrap_content" android:spacing="10dip"
  android:unselectedAlpha="0.7" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>The adapter:</p>

<pre><code>package de.goddchen.android.advent.template;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class AdventAdapter extends BaseAdapter {

 @Override
 public int getCount() {
  return 24;
 }

 @Override
 public Object getItem(int arg0) {
  return arg0;
 }

 @Override
 public long getItemId(int arg0) {
  return arg0;
 }

 @Override
 public View getView(int arg0, View arg1, ViewGroup arg2) {
  MyImageView aiv = (MyImageView) LayoutInflater.from(
    arg2.getContext()).inflate(R.layout.galleryimage, arg2, false);
  aiv.number = arg0 + 1;
  return aiv;
 }
}
</code></pre>

<p>I test the app on my Android 2.2 phone.
Any ideas?</p>
