Hi, can anyone please help, I'm trying to implement a playing card display, and one of the examples in B4A shows the display using B4XImageView but the syntax isn't the same in B4J
Example in B4J in the FlipCards example the following code seems okay
But in B4J there is no option to .AddToParent or .B4XBitmap any idea's or work arounds would be greatly received, many thanks
Example in B4J in the FlipCards example the following code seems okay
B4X:
For X = 0 To Columns - 1
For Y = 0 To Rows - 1
B4XImgViewCard(Counter).Initialize(Me, "B4XImgViewCard")
B4XImgViewCard(Counter).AddToParent(PnlMain, OffSetX + x * (CardSize + 10dip), OffSetY + y * (CardSize + 10dip), CardSize, CardSize)
B4XImgViewCard(Counter).B4XBitmap = CardBack 'Set card back image
B4XImgViewCard(Counter).Tag = $"${LstCards.Get(Counter)}~${Counter}"$ 'Store card name and card position
MapRotation.Put(Counter, 0) 'Store card name and set rotation to 0
Counter = Counter + 1
Next
But in B4J there is no option to .AddToParent or .B4XBitmap any idea's or work arounds would be greatly received, many thanks