This library was made based on UISwitch for IOS
Installation instructions:
- Copy the .xml and .jar files to your custom libraries folder
- Select in your REFERENCED LIBRARIES
Version history:
V1.0 (First public release):
- Initial version
UISwitch
Author: Alberto Iglesias
Version: 1
- UISwitch
Methods:- IsInitialized As Boolean
Tests whether the object has been initialized. - _asview As PanelWrapper
Return Panel Object from UISwitch - _author As String
Return the author of this library - _getposition As String
Return the Position - _initialize (vCallback As Object, ev As String, Tag As String, Width As Int, Height As Int, Bitmap0 As BitmapWrapper, Bitmap1 As BitmapWrapper) As String
Initializes the object. You can add parameters to this method if needed.
Examples:
Dim objBmp0 As Bitmap = LoadBitmap(File.DirAssets, "Model01_OFF.png")
Dim objBmp1 As Bitmap = LoadBitmap(File.DirAssets, "Model01_ON.png")
objUISwitch3.Initialize(Me,"objUISwitch","3333333",154dip,54dip,objBmp0,objBmp1) - _setposition (pPosition As Int) As String
Set Position (0 or 1) - _version As String
Return the version of this library
- IsInitialized As Boolean
This library use the AnimationPlus like dependence, if you don´t have, do the download from
http://www.b4x.com/android/forum/threads/lib-animationplus.21313/
Attachments
-
Example1.zip20.8 KB · Views: 610
-
Example2.zip77.3 KB · Views: 574
-
Example3.zip64.7 KB · Views: 609
-
Library.zip3.4 KB · Views: 717
-
UISwitch Models.zip110.2 KB · Views: 652
-
Screenshot1.png82.7 KB · Views: 714
-
Screenshot2.png23 KB · Views: 665
-
Screenshot3.png52.7 KB · Views: 669
-
GoogleToogles.zip1.7 KB · Views: 474
Last edited: