I am having a listview and a navbar on top of that.
On the navbar I have som buttons, but when I click them the onReleasefunction in the listview starts.
How can I stop that?
maholm
[import]uid: 5717 topic_id: 22686 reply_id: 322686[/import]
I am having a listview and a navbar on top of that.
On the navbar I have som buttons, but when I click them the onReleasefunction in the listview starts.
How can I stop that?
maholm
[import]uid: 5717 topic_id: 22686 reply_id: 322686[/import]
It is the tableView I mean. [import]uid: 5717 topic_id: 22686 reply_id: 90468[/import]
You need to use a bitmap mask to restrict the tableView size:
http://developer.anscamobile.com/reference/bitmap-masks-tableviews-and-scrollviews [import]uid: 93133 topic_id: 22686 reply_id: 90469[/import]
I am not using the widget.newtableView nut maybe its the same for the old tableview?
[import]uid: 5717 topic_id: 22686 reply_id: 90470[/import]
Ah…actually, looking at my code so am I. I got around it by creating a widget.newScrollView at the height I wanted and applying a bitmap mask (so it doesn’t actually scroll at all), and then inserting the tableView into that.
Not sure why I did it like that, I think I just preferred the method of setting up a tableView as against the newTableView.
[lua]local createScrollView = function()
scrollView = widget.newScrollView{
width = 440,height = 260,scrollWidth = 440,scrollHeight = 260,
hideBackground = true, maskFile = “masklobby.png”,listener = scrollViewListener
}
scrollView.x = 20; scrollView.y = 5; localGroup:insert(scrollView)
end
scrollView:insert(myList) – where myList is the name of my tableView[/lua]
[import]uid: 93133 topic_id: 22686 reply_id: 90472[/import]
Actually there was a fix in a recent daily build that addresses a scrolling bug that lets clicks on buttons on top of tableViews and scrollViews to make it to the view.
That may be what you’re experiencing. [import]uid: 19626 topic_id: 22686 reply_id: 90475[/import]
I am using the latest build.
[import]uid: 5717 topic_id: 22686 reply_id: 90478[/import]