passing touch events from one Gallery widget to another widget

by social hub » Thu, 18 Feb 2010 23:24:57 GMT

Sponsored Links
 Hi Guys,

I am trying to pass the same touch events on one widget to the other so they
both scroll at the same time and in same way.

I have two Gallery widgets one above and one below. If the above one is
scrolled then I want to pass the same touch event to the bottom widget so it
also scrolls the same way .

I have tried to use dispatchtouchevent events but I am facing an issue where
in if the bottom gallery widget has some edit text then the edit text gets
the key event and both widgets doesnt scroll anymore.. I have tried to set
focussable and editable to false on edittext even then it gets the touch
events. I think I am going in the right direction. However I need some
assistance in doing the right way.

Thanks in advance for your help


Other Threads

1. ListView refresh in ListActivity


I have a ListActivity with a custom CursorAdapter. Using a ContextMenu
I delete a row from the database. My problem is, that after deleting
the row, the ListView is not updated. IIRC the ListView should refresh
automatically. But I also tried to trigger this with a requery() on
the cursor.

Maybe you can give me a hint where I have to look or what I am doing

Here is the relevant part from onContextItemSelected(...):
    switch(item.getItemId()) {
        Toast toast = Toast.makeText(this,
R.string.toast_entry_deleted, Toast.LENGTH_SHORT);;
        //BeeyardsCursorAdapter adapter = (BeeyardsCursorAdapter)
        //adapter.getCursor().requery(); // Doesn't work
        return true;

And mDatabase.deleteBeeyard( deletes the entry:
public boolean deleteBeeyard(long id) {
    final SQLiteDatabase dbCon = getWritableDatabase();
    int rowsDeleted = 0;

    try {
        rowsDeleted = dbCon.delete(BeeyardTable.TABLE_NAME,
        BeeyardTable.WHERE_ID_EQUALS, new String[]
{ String.valueOf(id) });
    } finally {
    return rowsDeleted == 1;

Thanks a lot!


2. ListView and CheckedTextView questions - help me, thanks!!!!

Or could anyone who can teach me how to get the position of CheckedTextView
in its OnClickListener callback? If I can do this it means I can monitor
user actions by my own.


3. Implementing Recovery Mode in Android

4. Hebrew Fonts in Froyo?

5. Poor roaming performance ! Is it an Android bug ?

6. One of my application is invisible now on the market (Pure messenger / not copy protected)

7. Animated widgets?