How to implement android's Gallery fling action in my own widget

by Meryl Silverburgh » Fri, 13 Mar 2009 01:27:23 GMT

Sponsored Links

Can you please tell me how implement android's Gallery fling action
(with the animation) in my own widget?

Thank you.


How to implement android's Gallery fling action in my own widget

by Streets Of Boston » Fri, 13 Mar 2009 03:27:20 GMT

 Take a look at the GestureDetector class.

- Create an instance of GestureDetector.
- Handle the onTouch event of your activity.
  In your onTouch event handler, forward the MotionEvent to this
GestureDetector instance.
- Assign a listener to this GestureDetector (one that implements
onFling, amongst others)
  Implement the onFling method in your listener to handle flings.

On Mar 12, 1:27pm, Meryl Silverburgh <>


Sponsored Links

How to implement android's Gallery fling action in my own widget

by gymshoe » Fri, 13 Mar 2009 11:17:37 GMT

 The fling animation is automatic with the Gallery class.  If you need
your own (new) widget class, just
make your own MyGallery class which extends Gallery.
Then just overwrite the onFling() method to do whatever you want to
do, and at the end of that method call super.onFling(args).



Other Threads

1. Hot Rek: SAP (E-Sourcing) Consultant-Ashburn, VA-Long Term

Dear Partner,

Good Morning.

We have an urgent requirement for the below position please go through the
job description and send me some matching resumes along with contact details

*Role: SAP (E-Sourcing) Consultant*

Location: Ashburn, VA

Duration: Long Term

(Interview on monday F2F must)


-Develop High Level Design, configuration and code required to implement the

-Person will work with the clients to unit and integration test solution.

-Develop relevant documentation including functional and technical specs.

Required skills:

-8 years work experience

-2 years of SAP E-Sourcing development experience.

-Experience with at least 2 lifecycles of SAP E-Sourcing implementation.

-Should have 2 years of skills to configure in SAP MM application.

-Minimum 2 years experience developing code using Java/Javascript.

-Experience with PL/SQL development is highly desired.

-Excellent communication skills

Waiting for your quick response.


Chandra Shekar
Marketing Incharge
Smart IMS Inc.
103, Morgan Lane,
Suite # 104, Plainsboro
New Jersey- 08536.
Tel:  609 955 3039
Fax: 732 626 6137

Email id:
visit us @
"Certified Minority and Women Owned Business entity"

If  you do not  want  to receive  mails from me, please  send an  email
with  remove
in  the   subject line and I will  remove your  email  ID from the  mailing
list promptly


2. Evaluating javascript URLs in WebView fails at first attempt

In my application, I'm using the barcode scanner to scan a barcode and
inject the result into a WebView via the 'javascript:' URL scheme (see

When I load the javascript URL the first time in my application, it is
not evaluated. All other subsequent loads evaluate the javascript just
fine. This is consistently repeatable whenever I launch my application
for the first time. Has anyone else encountered this issue, or am I
the first one hitting it? I'm testing on a Nexus One with Android 2.2.


3. Status bar style

4. Camcorder on eclair-x86

5. Samsung Galaxy S Contacts Sync problem to CYNCZ Server

6. Adb protocol and framebuffer depth dependency ?

7. How to read font from File?