B4A Library [B4X] [XUI] Gauge View

Status
Not open for further replies.

Erel

B4X founder
Staff member
Licensed User
Longtime User
Custom views classes are not views by themselves.

Make those changes in the class:
1. Make mBase a public variable - line 21.
2. Add this line to DesignerCreateView after mBase is set:
B4X:
mBase.Tag = Me

Now you can get reference to the gauge class like this:
B4X:
Dim objGague As Gauge = p.GetView(0).Tag
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Works like a charm! thanks @Erel
 

foretek

Member
Licensed User
Some gauges require the warning(orange) and alarm (red) at low end area . e.g. fuel tank.. can this indication be customizable?
 

swChef

Active Member
Licensed User
Longtime User
I combined this with (an offsetted) radial gradient to get a highlighted edge effect.
Incomplete project, so a few details left to adjust.
 
Last edited:

stephans

Member
Licensed User
Hello,

the gauge view looks very interesting for me and I would like to use it in my Android app.
The sample file works, but how can I implement the class in my app
Can everybody help me?

Thanks in advance

Stephan
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…