B4A Library FlipImageView

lonleystar

Well-Known Member
Licensed User
Hi Guys here is another little lib for B4A.

In this lib. include a demo and library so copy the lib in your B4A library and run the demo.


Just follow the demo to understand how it is easy now.


FlipImageView
Author:
Giuseppe Salvi
Version: 2
  • FlipImageView
    Events:
    • FlipClick
    • FlipEnd
    • FlipStart
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • isAnimated As Boolean
      return is Animated
    • isFlipped As Boolean
      return is Flipped
    • isFlipping As Boolean
      return is Flipping
    • isRotationReversed As Boolean
      return Rotation is Reversed
    • isRotationXEnabled As Boolean
      return isRotation X is Enabled
    • isRotationYEnabled As Boolean
      return Rotation Y is Enabled
    • isRotationZEnabled As Boolean
      return Rotation Z is Enabled
    Properties:
    • Animated As Boolean [write only]
      Set animated
    • DrawingCacheEnabled As Boolean [write only]
      Enables or disables the drawing cache.
    • DrawingCacheQuality As Boolean [write only]
      Set the drawing cache quality of this view.
    • Duration As Int [write only]
      Set duration
    • Flipped As Boolean [write only]
      Set Flipped
    • FlippedBitmap As Bitmap [write only]
      Set Flipped Bitmap
    • Height As Int [read only]
      return height
    • ImageBitmap As Bitmap [write only]
      Set Front bitmap
    • Interpolator As Interpolator [write only]
      Set Interpolator
    • RotationReversed As Boolean [write only]
      Set Rotation Reversed
    • RotationXEnabled As Boolean [write only]
      Set Rotation X Enabled
    • RotationYEnabled As Boolean [write only]
      Set Rotation Y Enabled
    • RotationZEnabled As Boolean [write only]
      Set Rotation Z Enabled
    • Width As Int [read only]
      return width
 

Attachments

Last edited:

Mahares

Well Known Member
Licensed User
You are really a star as your name suggests coming up with this very nice library. Is there any chance you can add methods like: fiv.Gravity, fliv.visible, etc. to make it more versatile.
Vive l' Italie
 

shaxboz

Member
Licensed User
Hi! How can I automate flipping with this FlipImageView.
I have a timer, and I want to flip image when timer_tick?
 

shaxboz

Member
Licensed User
Hi! I have another problem with this library...
How can I stop flipping, like a enabled=false Sometimes it shouldn't flip when user click to fiv.
I couldn't find "visible", "enable" to change.
 

MaxApps

Active Member
Licensed User
This is wonderful.
I have been trying to get a similar thing to work, but it only works in the developers demo.
Cant wait to use this.
THANKS
 

lonleystar

Well-Known Member
Licensed User
Nice one , i have tried..
but i could not find the fiv.Gravity =Gravity.FILL and fiv.Enable, could you add them or there is some way around ?
regards
Hi, sorry if I answer to late, I dont remember if it is already implemented or not, but anyway I'll check it and if not I'll add that.

Thank U so much.
 

lonleystar

Well-Known Member
Licensed User
hello, just finished an app with flip cards, thanks to this lib.

demo here.

could not add flip sound as the event handling seems not working!
B4X:
fiv.Initialize("fiv")
Sub fiv_Click    <-- do not work
MediaPlayer1.Play
End Sub
Hi, check below.

B4X:
Sub fiv_FlipClick  <--- right

MediaPlayer1.Play

End Sub

not

Sub fiv_Click       <--- wrong

MediaPlayer1.Play

End Sub
 
Last edited:

dibesw

Active Member
Licensed User
Hi Guys here is another little lib for B4A.

In this lib. include a demo and library so copy the lib in your B4A library and run the demo.


Just follow the demo to understand how it is easy now.


FlipImageView
Author:
Giuseppe Salvi
Version: 2
  • FlipImageView
    Events:
    • FlipClick
    • FlipEnd
    • FlipStart
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • isAnimated As Boolean
      return is Animated
    • isFlipped As Boolean
      return is Flipped
    • isFlipping As Boolean
      return is Flipping
    • isRotationReversed As Boolean
      return Rotation is Reversed
    • isRotationXEnabled As Boolean
      return isRotation X is Enabled
    • isRotationYEnabled As Boolean
      return Rotation Y is Enabled
    • isRotationZEnabled As Boolean
      return Rotation Z is Enabled
    Properties:
    • Animated As Boolean [write only]
      Set animated
    • DrawingCacheEnabled As Boolean [write only]
      Enables or disables the drawing cache.
    • DrawingCacheQuality As Boolean [write only]
      Set the drawing cache quality of this view.
    • Duration As Int [write only]
      Set duration
    • Flipped As Boolean [write only]
      Set Flipped
    • FlippedBitmap As Bitmap [write only]
      Set Flipped Bitmap
    • Height As Int [read only]
      return height
    • ImageBitmap As Bitmap [write only]
      Set Front bitmap
    • Interpolator As Interpolator [write only]
      Set Interpolator
    • RotationReversed As Boolean [write only]
      Set Rotation Reversed
    • RotationXEnabled As Boolean [write only]
      Set Rotation X Enabled
    • RotationYEnabled As Boolean [write only]
      Set Rotation Y Enabled
    • RotationZEnabled As Boolean [write only]
      Set Rotation Z Enabled
    • Width As Int [read only]
      return width
Hi LonleyStar,
is it possible operate for 3 or 4 images?

THANKS!
 

Kapelis

Member
Licensed User
Hi Guys here is another little lib for B4A.

In this lib. include a demo and library so copy the lib in your B4A library and run the demo.


Just follow the demo to understand how it is easy now.


FlipImageView
Author:
Giuseppe Salvi
Version: 2
  • FlipImageView
    Events:
    • FlipClick
    • FlipEnd
    • FlipStart
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • isAnimated As Boolean
      return is Animated
    • isFlipped As Boolean
      return is Flipped
    • isFlipping As Boolean
      return is Flipping
    • isRotationReversed As Boolean
      return Rotation is Reversed
    • isRotationXEnabled As Boolean
      return isRotation X is Enabled
    • isRotationYEnabled As Boolean
      return Rotation Y is Enabled
    • isRotationZEnabled As Boolean
      return Rotation Z is Enabled
    Properties:
    • Animated As Boolean [write only]
      Set animated
    • DrawingCacheEnabled As Boolean [write only]
      Enables or disables the drawing cache.
    • DrawingCacheQuality As Boolean [write only]
      Set the drawing cache quality of this view.
    • Duration As Int [write only]
      Set duration
    • Flipped As Boolean [write only]
      Set Flipped
    • FlippedBitmap As Bitmap [write only]
      Set Flipped Bitmap
    • Height As Int [read only]
      return height
    • ImageBitmap As Bitmap [write only]
      Set Front bitmap
    • Interpolator As Interpolator [write only]
      Set Interpolator
    • RotationReversed As Boolean [write only]
      Set Rotation Reversed
    • RotationXEnabled As Boolean [write only]
      Set Rotation X Enabled
    • RotationYEnabled As Boolean [write only]
      Set Rotation Y Enabled
    • RotationZEnabled As Boolean [write only]
      Set Rotation Z Enabled
    • Width As Int [read only]
      return width
My friend you are a genius!!! Thank you so much.
 

raphipps2002

Active Member
Licensed User
This is a great library! Do you have any intention to make it available on B4i?

How difficult would it be?

Regards



Hi Guys here is another little lib for B4A.

In this lib. include a demo and library so copy the lib in your B4A library and run the demo.


Just follow the demo to understand how it is easy now.


FlipImageView
Author:
Giuseppe Salvi
Version: 2
  • FlipImageView
    Events:
    • FlipClick
    • FlipEnd
    • FlipStart
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • isAnimated As Boolean
      return is Animated
    • isFlipped As Boolean
      return is Flipped
    • isFlipping As Boolean
      return is Flipping
    • isRotationReversed As Boolean
      return Rotation is Reversed
    • isRotationXEnabled As Boolean
      return isRotation X is Enabled
    • isRotationYEnabled As Boolean
      return Rotation Y is Enabled
    • isRotationZEnabled As Boolean
      return Rotation Z is Enabled
    Properties:
    • Animated As Boolean [write only]
      Set animated
    • DrawingCacheEnabled As Boolean [write only]
      Enables or disables the drawing cache.
    • DrawingCacheQuality As Boolean [write only]
      Set the drawing cache quality of this view.
    • Duration As Int [write only]
      Set duration
    • Flipped As Boolean [write only]
      Set Flipped
    • FlippedBitmap As Bitmap [write only]
      Set Flipped Bitmap
    • Height As Int [read only]
      return height
    • ImageBitmap As Bitmap [write only]
      Set Front bitmap
    • Interpolator As Interpolator [write only]
      Set Interpolator
    • RotationReversed As Boolean [write only]
      Set Rotation Reversed
    • RotationXEnabled As Boolean [write only]
      Set Rotation X Enabled
    • RotationYEnabled As Boolean [write only]
      Set Rotation Y Enabled
    • RotationZEnabled As Boolean [write only]
      Set Rotation Z Enabled
    • Width As Int [read only]
      return width
 

studio4

Member
Licensed User
It's possible to set enabled = false or visible = false in this library?
Hello,
I have proved this library and I think that there are not these properties, but I found a homemade system: Add these objects to a panelview and disabled or put invisible it. I hope that it will be useful for your. Good luck! (I have just implemented it in my project and works perfect).
 

lonleystar

Well-Known Member
Licensed User
Hello,
I have proved this library and I think that there are not these properties, but I found a homemade system: Add these objects to a panelview and disabled or put invisible it. I hope that it will be useful for your. Good luck! (I have just implemented it in my project and works perfect).

Hi, Sonday I fix my computer I had problems with the computer reseller.

Anyway I'm back and I'll fix all plugins.

Sorry for the inconvenience.
 
Top