If you are talking about card games then I would load the back of the card in an image with its Gravity Set to "Fill" in Designer and declare it as B4XView in the code.
Then I would use this code
defining also the duration to make it seem like it is flipping while setting the left to width/2 and width to 0.
img.SetLayoutAnimated(...)
Then load the front of the card in the image and set the opposite (width to original width and left to original left) :
img.SetLayoutAnimated(...)
Good luck neightbour...