Hi I think I found a bug.
You can design custom layouts and its a great feature, but, to have the dialog buttons, you use the tag.
The problem is that you cant use this property anymore
When you have many buttons, you have to write a lot of code to handle them, unles you do in a unique even.
For example, to create a dialog with 10 buttons and have only one event, I usualy do...
Sub BtnXXX_Click
Dim b As Button
b = Sender
If b.Tag = "NX" Then
'Some stuff
If b.Tag = "NY" Then
'More stuff
Else
'Extra stuff
End If
End Sub
But, You are not handdling correctly the Tags in the lib code, if a button's tags has for example "NX", raises a NumberFormatException:
java.lang.NumberFormatException: Invalid int: "NX"
Maybe yo can just Filter Integer tags to be the Responses AND let the Non Numeric tags to be used in B4A Code
OR
Let all the tags be available to B4A Code unless it has some special character indicating to be a "response button", For example:
'This buton will raise the click event and could use the Tag with the sender Object
MyButton1.Tag = "1"
'This Button will dismiss the dialog and return 1 as the Response
MyButton1.Tag = "~1"
Please Let me know what you think.
Thanks