Android Example BitmapMeshView

You can play around with this. Posting the following:

B4A project (BitmapMeshView.zip)
Java Code (src.zip)

Amend the Java code to your liking.
Click on the blank screen once the project has stated up. The image will appear. Swipe your finger left to right / right to left to see the "curtain effect" of the image.

The JAR and XML files are in the /files folder of the attached B4A project. Copy them to your additional libraries folder. You will also need android-support-v4.jar to be in your additional libraries folder. You can download it from here






snipper1.png


It comes from here
 

Attachments

  • BitmapMeshView.zip
    209.8 KB · Views: 560
  • src.zip
    4.4 KB · Views: 513

Johan Schoeman

Expert
Licensed User
Longtime User
Fixed the call to invalidate(). New lib files are in the /files folder of the B4A project. Also posting the amended source.


snipper1.png


BitmapMeshView
Version:
1
  • BitmapMeshView
    Fields:
    • ba As BA
    Methods:
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • onTouchEvent (event As MotionEvent)
    Properties:
    • Background As Drawable
    • Color As Int [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Tag As Object
    • TheBitmap As Bitmap [write only]
    • Top As Int
    • Visible As Boolean
    • Width As Int
 

Attachments

  • BitmapMeshView.zip
    209.9 KB · Views: 509
  • src.zip
    4.4 KB · Views: 441
Last edited:
Top