It partly wraps this Github project. The library files (including JavaObject.jar and JavaObject.xml) are in the /files folder of the attached B4A project. Copy the project lib files to your additional libraries folder and the JavaObject files to your default library folder - in case you don't have the latest version of the JavaObject library files (the project uses inline Java code to access the current battery level in order to display it in the view on the left - you need the JavaObject lib files for this. The view on the right displays random values).
Posting the B4A project
The Java source code - amend it to your liking.
The zipped drawable folder of the B4A project - unzip it and copy the files into the /Objects/res/drawable folder of the B4A project.
anothergaugeview
Author: Johan Schoeman
Version: 1
Posting the B4A project
The Java source code - amend it to your liking.
The zipped drawable folder of the B4A project - unzip it and copy the files into the /Objects/res/drawable folder of the B4A project.
anothergaugeview
Author: Johan Schoeman
Version: 1
- AnotherGaugeView
Fields:- ba As BA
- AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
- 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)
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- Height As Int
- InnerCircleColor As Int [write only]
- Left As Int
- NeedleHeight As Float [write only]
- NeedleWidth As Float [write only]
- OuterCircleColor As Int [write only]
- ShowNeedle As Boolean [write only]
- ShowRanges As Boolean [write only]
- ShowText As Boolean [write only]
- Tag As Object
- TargetValue As Float [write only]
- TextShadowColor As Int [write only]
- TextUnit As String [write only]
- TextUnitColor As Int [write only]
- TextUnitSize As Float [write only]
- TextValue As String [write only]
- TextValueColor As Int [write only]
- TextValueSize As Float [write only]
- Top As Int
- Visible As Boolean
- Width As Int