Jun 26, 2015 Replies: 1 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 It comes from here Attachments BitmapMeshView.zip BitmapMeshView.zip 209.8 KB · Views: 843 src.zip src.zip 4.4 KB · Views: 850 Click to expand...
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 It comes from here
Johan Schoeman Expert Licensed User Longtime User Jun 27, 2015 #2 Fixed the call to invalidate(). New lib files are in the /files folder of the B4A project. Also posting the amended source. 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 BitmapMeshView.zip 209.9 KB · Views: 796 src.zip src.zip 4.4 KB · Views: 681 Last edited: Jul 4, 2015
Fixed the call to invalidate(). New lib files are in the /files folder of the B4A project. Also posting the amended source. 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