android


Android - Mulitple listeners on a single view with the ability to pass off events to other views


I have a Gallery that contains a ScrollView. I can scroll through the text in the ScrollView with a vertical swipe as is standard. However, I would like the ScrollView to also listen for horizontal swipes which would then move the Gallery left or right. Does anyone know how to do that?
Thanks.
Okay, here is what I found. You will need to use onInterceptTouchEvent(). You can read about it here: http://developer.android.com/reference/android/view/ViewGroup.html
Alternatively, you can do a search for onInterceptTouchEvent example to find several examples.

Related Links

I want to send key-pair values in soap web Service using ksoap2 library in android
ListView not scrolling smoothly even with ViewHolder
Secure NodeJS REST API for mobile application
Is there a way to access TV audio?
Check for MediaPlayer Playing? How?
setVisibility(View.GONE) is not working in ListView
Unable to find explicit activity class error
Activity cannot be loaded. outofMemory Runtime Exception
GCM device registration
Google map cannot display when I install APK that I produced
Android Intent with NullPointerException
Android onCreate() not called with Notification
Google maps API for android (v2) - how to add text with no background?
Android fragment push up
android.database.StaleDataException: Access closed cursor
Android animation view: problems with scaling a view and then translating the view

Categories

HOME
turing-machines
api
paraview
deep-learning
apache-jena
ecmascript-6
mjml
pyqt
flex
youtube-data-api-v3
simulink
hugo
gembox-spreadsheet
gluon-mobile
google-schemas
openpyxl
php-5.6
docx
heat
parameter-passing
visual-glitch
undertow
rubymotion
question2answer
direct3d11
dynamically-generated
ms-access-web-app
bringtofront
uitapgesturerecognizer
sqsh
constexpr
postback
zend-debugger
hibernate-validator
vue-chartjs
mnist
processwire
batching
numpy-broadcasting
google-knowledge-graph
ideascript
hackintosh
laravel-elixir
microsoft-metro
lpsolve
apollostack
avcapturedevice
hammer.js
context-switch
video-conferencing
wpas
universal-analytics
rsa-archer-grc
reachability
angular2-testing
actor-platform
winusb
redbeard-ios
microstation
centrifuge
rspec2
jquery-jscrollpane
scaffolding
expectations
android-wake-lock
sklearn-pandas
nullable
qbxml
toast
highland.js
opl
terracotta
opserver
rpart
batik
typeconverter
xmltype
qtwebengine
android-cookiemanager
android-vibration
ssis-data-flow
post-commit-hook
jama
cuba
radiant
sbcl
node-blade
jquery-1.9
pclzip
apache-abdera
web-notifications
jquery-blockui
rmiregistry
stress
filemerge
catransform3d
clrstoredprocedure
inline-formset
cac
objective-j
cruisecontrol.rb
blender-2.49
todos
firefox-3
wcf-proxy

Resources

Encrypt Message