B4A Library [B4X] [XUI Views] - AMCompassView

A new CompassView for B4A & B4J

Features

  • Cross-platform compatible
  • A nice gauge animation
  • Changeable values
  • Custom Colors
  • Custom Border And CornerRadius
  • Will Give you a good experience ;)
Tested in
  • B4A
  • B4J
* I don't have tested it with B4I, but it should work *

I made this with the help of the Erel's post about GaugeView : [B4X] [XUI] Gauge View | B4X Programming Forum

20210822_112845.gif


AMCompassView
Author: AmirMK82
Version: 1.00

  • AMCompassView
    • Fields:
      • Tag As Object
    • Functions:
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • setBackgroundColor (Color As Int)
      • setTickColor (Color As Int)
      • setGaugeColor1 (Color As Int)
      • setGaugeColor2 (Color As Int)
      • setGaugeStrokeWidth (width As Float)
      • setGaugeFilled (Filled As Boolean)
      • setGaugeWidth (Width As Int)
      • setGaugeHeight (Height As Int)
      • setAngle (Angle As Float)
      • setAnimationDuration (Duration As Int)
      • setCircleColor (Color As Int)
      • setCircleRadius (Radius As Float)
      • setCircleStrokeWidth (Width As Float)
      • setCircleFilled (Filled As Boolean)
      • getBackgroundColor As Int
      • getTickColor As Int
      • getGaugeColor1 As Int
      • getGaugeColor2 As Int
      • getGaugeStrokeWidth Float
      • getGaugeFilled As Boolean
      • getGaugeWidth As Int
      • getGaugeHeight As Int
      • getAngle As Float
      • getAnimationDuration As Int
      • getCircleColor As Int
      • getCircleRadius As Float
      • getCircleStrokeWidth As Float
      • getCircleFilled As Boolean
    • Properties:
      • mBase As B4XView
Help Me Make It Better,Tnx very much?
Be Healthy:)
 

Attachments

  • Project.zip
    14.7 KB · Views: 360
  • AMCompassView.bas
    10.9 KB · Views: 320
  • AMCompassView.b4xlib
    2.7 KB · Views: 338
Last edited:
Top