listview


TouchableWithoutFeedBack not responding when ListView is wrapped in


I want to detect when a user release touch on a ListView in order to be able to center my cells at that moment. In iOS I’ve wrapped my ListView in a TouchableWithoutFeedBack and it’s working fine. The onPress is called when the user stops touching it. But in Android, onPress is not called.
I can’t put all my ListViews rows in Touchables because the user won’t be able to touch it and continue scrolling.
Here’s my code :
render() {
return (
<TouchableWithoutFeedback onPress={() => this.release()}>
<ListView
ref="dateStripe"
bounces={true}
style={{paddingRight: (ScreenWidth / 2) - (ScreenWidth / 5 / 2), paddingLeft: (ScreenWidth / 2) - (ScreenWidth / 5 / 2)}}
scrollEventThrottle={1}
horizontal={true}
onScroll={this.onScroll}
showsHorizontalScrollIndicator={false}
dataSource={this.state.dataSource}
renderRow={this._renderItem.bind(this)}
/>
</TouchableWithoutFeedback>
)
}

Related Links

Get more than one rows item for one iteration in ADF-Mobile
Sencha Touch merging ListView back button bar with custom toolbar
understanding cellFactories and CallBack
how to set image to ImageView inside ListView in Xamarin?
Sencha Touch consecutive listviews double back buttons issue
Listview loaded twice
Different height in ListView
How to set selected item of ListView without scrolling the view
Can't update data from Kendo DataSource
Closed or circular Vertical ListView Android
How to set layout for topEmptyRegion in WearablListView?
How to disable groupedlist i.e. SemanticZoom+ListView virtualization in WP8.1 WinRT?
Listview item with NM_CUSTOMDRAW is flickering
How to stretch ListView items width to fill parent container?
POSH: Export Listview to CSV
Unable to receive all NM_CUSTOMDRAW dwDrawStage for a ListView

Categories

HOME
testing
vbscript
blogger
webpack
mediawiki
heroku
getelementsbytagname
programming-languages
rubygems
callback
disassembler
echarts
onelogin
azure-media-services
esper
awesome-wm
nano-server
spring-kafka
etl
size
static-libraries
visual-studio-2005
dynamics-crm-online
uitypeeditor
highlight.js
facebook-page
visual-composer
introduction
facebook-instant-articles
css-animations
telerik-reporting
mmap
sqlcipher
opennlp
numerical-methods
tooltipster
filezilla
libuv
r-raster
google-cloud-endpoints-v2
vsts-build-task
force-layout
hexo
jmonkeyengine
android-ble
revolution-slider
simplexml
abstract-class
email-templates
google-closure
nand2tetris
isbn
password-encryption
unixodbc
checkboxlist
.net-4.6.2
angular2-meteor
fault
errordocument
paxos
windows-iot-core-10
knpmenubundle
akka-cluster
zendesk-app
nbconvert
iso8601
spring-mongodb
spring-cache
dwscript
parallel-data-warehouse
gridpane
phishing
transmitfile
firebaseui
sdf
teamcity-8.0
icu4j
cannon.js
content-length
android-listview
drawbitmap
cakephp-3.1
appfabric-cache
generic-programming
angular-local-storage
python-green
block-device
clicktag
ng-animate
xc16
nstableviewcell
network-interface
cdt
fpml
applescript-objc
xojo
aapt
bundles
mcts
gnu-smalltalk
coverflow
eventual-consistency
sabredav
rdoc
dsn
automount
nsdatecomponents
spyware
joyent
xmemcached
recent-documents
filtered-index
routedevent
eqatec
post-build
ugc
data-acquisition

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App