I have 4 buttons that will have to mouve 20 images on the screen
instead of coding
I need a function to get the view and use single statement
img_x.left=img_x.left-1dip in all 4 buttons coresponding for move to left,right,top,bottom
I am new with b4j ..so do not laugh ..the sub below is crashing my brain
instead of coding
B4X:
Sub btn_left_MouseClicked (EventData As MouseEvent)
img_1.left=img_1.left-1dip
img_2.left=img_2.left-1dip
.
.
.
img_100.left=img_100.left-1dip
End Sub
img_x.left=img_x.left-1dip in all 4 buttons coresponding for move to left,right,top,bottom
I am new with b4j ..so do not laugh ..the sub below is crashing my brain
B4X:
Sub get_view As ImageView
Dim xv As ImageView
Select mystring
Case "img_test"
xv=img_test
Case "img_pa1"
xv=img_pa1
End Select
Return xv
End Sub