B4A Library CompassView

Discussion in 'Additional libraries, classes and official updates' started by Johan Schoeman, Jul 25, 2015.

Similar threads

B4A Tutorial [java] Custom View with Designer Support (Java library)
B4A Example Simple Compass
B4A Library ChatMessageView
B4A Library Google VR
B4A Library PanoramaImageView
  1. Johan Schoeman

    Johan Schoeman Expert Licensed User

    The attached project wraps this Github project. The library files are in the /files folder of the attached B4A project. Copy them to your additional library folder. Also posting the Java code. You will also need to enable the Phone library in the B4A project. Move your device in different directions and see the compasses changing accordingly.


    1.png



    compassview
    Author:
    Johan Schoeman
    Version: 1
    • CompassView
      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)
      Properties:
      • Background As Drawable
      • Color As Int [write only]
      • CompassBackgroundColor As Int [write only]
      • CompassDegrees As Float [write only]
      • CompassLineColor As Int [write only]
      • CompassMarkerColor As Int [write only]
      • CompassRangeDegrees As Float [write only]
      • CompassShowMarker As Boolean [write only]
      • CompassTextColor As Int [write only]
      • CompassTextSize As Int [write only]
      • Enabled As Boolean
      • Height As Int
      • Left As Int
      • Tag As Object
      • Top As Int
      • Visible As Boolean
      • Width As Int
     

    Attached Files:

  2. shashkiranr

    shashkiranr Active Member Licensed User

    Hi @Johan Schoeman,

    Kindly create a Overview thread. :) Its really easy to find out all the wrapped libraries.

    Thank you for being awesome :)

    Regards,
    SK
     
    DonManfred and Johan Schoeman like this.
  3. Johan Schoeman

    Johan Schoeman Expert Licensed User

    I have a very good teacher and a very good advisor...;)
     
  4. MarcoRome

    MarcoRome Expert Licensed User

    Johan Schoeman likes this.
  5. MarcoRome

    MarcoRome Expert Licensed User

    I would be very happy to use some of your libraries in my app. Where can I donate ?
    Hey guys i think it's right to make a small donation to colleagues as @Johan Schoeman ,@DonManfred, etc. It is very fair because they give us many beautiful libraries.
    I wait your notice Johan.
    Thank you again for your great work
     
  6. Johan Schoeman

    Johan Schoeman Expert Licensed User

    I am doing this purely for the fun of it @MarcoRome. You can use whatever you want (of what I have posted) in your apps. No need to donate anything. My "payment" is the satisfaction of seeing it "work"....;)
     
  7. MarcoRome

    MarcoRome Expert Licensed User

    This dont only work... but work very good ;)
     
    lemonisdead and Johan Schoeman like this.
Loading...