Widget 2.0 - Tableview - Android Build - Release/press Event Issues

Hi everybody,

 

I tried to use the new widget tableview library, it works perfectly on the iphone and the simulator.

Its not working correctly on android : you can’t touch the rows, you can scroll them but you can’t select one.

Give it a try :

-- main.lua local widget = require( "widget" ) local numRows = 40 ; local function tableViewListener( event ) print( event.direction ) print( event.isLimitReached ) end local function onRowRender( event ) local phase = event.phase local row = event.row local rowTitle = display.newText( row, "Row " .. row.index, 0, 0, nil, 14 ) rowTitle.x = row.x - ( row.contentWidth \* 0.5 ) + ( rowTitle.contentWidth \* 0.5 ) rowTitle.y = row.contentHeight \* 0.5 rowTitle:setTextColor( 0, 0, 0 ) end local function onRowUpdate( event ) local phase = event.phase local row = event.row print( row.index, ": is now onscreen" ) end local function onRowTouch( event ) local phase = event.phase if ( "release" == phase ) then print( "Touched row:", event.target.index ) native.showAlert( "Info", "Touched row: " .. event.target.index, { "OK" } ) end end local tableView = widget.newTableView { left = 0, top = 52, width = 320, height = 366, hideBackground = true, maskFile = "assets/mask-320x366.png", listener = tableViewListener, onRowRender = onRowRender, onRowUpdate = onRowUpdate, onRowTouch = onRowTouch, maxVelocity = 1.0, friction = 0.972, noLines = false, } for i=1,numRows do tableView:insertRow { isCategory = false, rowHeight = 80, rowColor = { default={ 255, 255, 255 }, over={ 0, 175, 250 } }, lineColor = { 150, 150, 150, 50 }, } end

 

 

 

I zipped the app, to let you try easily,

 

Thanks,

 

Edit :

(i’m using a nexus 4 phone, sorry for double post)

This is a big issue for me too … works on simulator and iPhone but on Android … i get no touch event 

 

This is a VERY painful migration to widget 2.0 … please correct this ASAP as without this the migration has to be reverted.

 

Many thanks!

 

Using build 1055 with Note II device.

 

Cheers,

m

 

I am looking into this issue right now, don’t worry this is a huge priority item for me.

Any ETA possible on this one?  Bit of a show stopper.

 

Yup, one of the next couple of daily builds :slight_smile:

Thanks!  Looking forward to it.  Cheers

Any further update on eta here … this one is really a problem. Cannot test on Android with this bug in the way. You did say Couple of daily Builds so the squeaky wheel syndrom has struck me and thus this post :slight_smile:

Hey.

Please give daily build 1061 a whirl and let me know how it fares for you.

Seems 161 behaves better thanks.  One thing that seems different since widget 2.0 is taps on the row seem to be ignored … i have to press (for lack of a better term) to get the row to select.  Seems that the temporal threshold used for detecting row touch is longer than it used to be. A quick tap of the row is not recognized.  

Very good. There is one little side affect issue that was introduced in that build which will be resolved in the next daily. 
Yeah, this issue was incredibly complicated to fix, the fact that it is working better for you is music to my ears.

I will see what can be done to enable taps, rather than a short press.

This is a big issue for me too … works on simulator and iPhone but on Android … i get no touch event 

 

This is a VERY painful migration to widget 2.0 … please correct this ASAP as without this the migration has to be reverted.

 

Many thanks!

 

Using build 1055 with Note II device.

 

Cheers,

m

 

I am looking into this issue right now, don’t worry this is a huge priority item for me.

Any ETA possible on this one?  Bit of a show stopper.

 

Yup, one of the next couple of daily builds :slight_smile:

Thanks!  Looking forward to it.  Cheers

Any further update on eta here … this one is really a problem. Cannot test on Android with this bug in the way. You did say Couple of daily Builds so the squeaky wheel syndrom has struck me and thus this post :slight_smile:

Hey.

Please give daily build 1061 a whirl and let me know how it fares for you.

Seems 161 behaves better thanks.  One thing that seems different since widget 2.0 is taps on the row seem to be ignored … i have to press (for lack of a better term) to get the row to select.  Seems that the temporal threshold used for detecting row touch is longer than it used to be. A quick tap of the row is not recognized.  

Very good. There is one little side affect issue that was introduced in that build which will be resolved in the next daily. 
Yeah, this issue was incredibly complicated to fix, the fact that it is working better for you is music to my ears.

I will see what can be done to enable taps, rather than a short press.

Just stumbled across your last post Danny, if you could get the touch or tap events to be more responsive on the rows that would be great.

Its really quite hard to select rows currently and i can’t see a way that we can edit it to make it any better. Thanks!