Note that there are some explanatory texts on larger screens.

plurals
  1. POScrollView/ListView does not respond to my finger gesture
    primarykey
    data
    text
    <p>I want to be able to scroll through a list using my finger on the screen, but right now I need to use the track ball at the bottom of the phone. Is there something that I need to implement or something that I am doing wrong? Here is my XML with the ScrollView:</p> <pre><code>&lt;ScrollView android:layout_height="250dip" android:layout_width="fill_parent"&gt; &lt;LinearLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" android:id="@+id/linearLayout1"&gt; &lt;ListView android:layout_width="fill_parent" android:id="@+id/android:list" android:layout_height="250dip"&gt;&lt;/ListView&gt; &lt;TextView android:id="@+id/android:empty" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_user_names" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>And below is from my class:</p> <p>The list is populated using this method:</p> <pre><code>private void populateList(){ String[] projection = new String[]{NameProviderMetaData.NameTableMetaData._ID, NameProviderMetaData.NameTableMetaData.NAME}; Cursor c = managedQuery(NAMES_URI,projection,null,null,NameProviderMetaData.NameTableMetaData.NAME); String[] cols = new String[] {NameProviderMetaData.NameTableMetaData.NAME}; int[] views = new int[] {android.R.id.text1}; adapter = new SimpleCursorAdapter(this,android.R.layout.simple_list_item_1,c,cols,views); setListAdapter(adapter); } </code></pre> <p>I have an onTouchEvent method elsewhere in the class:</p> <pre><code>@Override public boolean onTouchEvent(MotionEvent event) { if (mGestureDetector.onTouchEvent(event)) return true; else return false; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload