Hi,
I want to add a small button just at the position the user has touched.
How is this done?
I try
I know this is wrong, but I cannot add a view to the touchimageview.
Thanks
Peter
I want to add a small button just at the position the user has touched.
How is this done?
I try
B4X:
Sub TouchImageView1_Click(X As Int, Y As Int)
Log("Click X="&X&", Y="&Y)
Dim b As Button
b.initialize ("touchbtn")
bcount=bcount+1
b.Tag=bcount
b.Text=bcount
b.Background=Colors.red
Activity.AddView (b,X,Y,10,10)
end sub
I know this is wrong, but I cannot add a view to the touchimageview.
Thanks
Peter