iOS Question Card Flip

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I need assistance with a card flip feature for an iOS application. Unfortunately, I've been unable to replicate a similar feature that was developed for Android. Is there anyone who can help me with this?

Best regards.


Flip Card
 

hatzisn

Expert
Licensed User
Longtime User
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.
B4X:
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) :
B4X:
img.SetLayoutAnimated(...)

Good luck neightbour...
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Maybe also these two in conjuction...

B4X:
    Dim imCrd As B4XView = imgCard
    imCrd.SetRotationAnimated(....)
    imCrd.SetLayoutAnimated(....)
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Also have a look at this:

 
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
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.
B4X:
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) :
B4X:
img.SetLayoutAnimated(...)

Good luck neightbour...
Hello γείτονας, I'm struggling with implementing animations. I'm attempting to create an effect where clicking on a tarot card triggers an animation that flips the card to reveal its face. I've followed the instructions but haven't been successful. Does anyone have an example code for this?
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Hello γείτονας, I'm struggling with implementing animations. I'm attempting to create an effect where clicking on a tarot card triggers an animation that flips the card to reveal its face. I've followed the instructions but haven't been successful. Does anyone have an example code for this?
Better post the project of what you tried and mention what is not working.
Members will try to fix that.
 
Upvote 0
Top