Android Question [SOLVED] Toolbar not working with Table

Tim Chapman

Active Member
Licensed User
Longtime User
My code has the Flexible Table v3.33 (https://www.b4x.com/android/forum/threads/class-flexible-table.30649/)
and the Toolbar (https://www.b4x.com/android/forum/threads/material-design-4-modifyable-and-advanced-menu.49128/)

They two won't work together.
The Toolbar menu clicks don't work.

The warning: View 'ToolBar' was added with the designer. You should not initialize it. (warning #20) shows.
This goes away if I remove the ScrollView2D library or comment out the Private table1 As Table line.

Something seems to be incompatible between the table and the toolbar.

My code is to large to attach so it is here:
www.arrowantennas.com/piccs/SRPG.zip

Thank you for any assistance.
 
Last edited:

klaus

Expert
Licensed User
Longtime User
When I run the program I get this error.

1710329831046.png



The warning you get is normal !
You added the Toolbar in the Designer, but in line 149 you initialize it. You should comment this line.
 
Last edited:
Upvote 1

Tim Chapman

Active Member
Licensed User
Longtime User
Thank you. That fixed it.
Not sure why I did not notice that.
When I Exported As Zip, the resources folder was not included. I will remember that for future reference.
 
Upvote 0
Top