Do you now a way you can choose numbers with 0.5 steps?
This don't work
{
"options": [
"0, 8.5, 0.5"
],
"title": "HNor",
"type": "Numeric Range",
"key": "HNor",
"required": false
},
I haven't found the way to reach the B4XPlusMinus inside the prefDialog, but there's an "EXTRA" property that is a map with the values ((MyMap) {start=0.0, end=8.5, interval=0.5}).
So I can set the maximum number this way. It will be more flexible to set the max number in some situations I need
B4X:
For i = 0 To PrefDialog.PrefItems.Size - 1
Dim pi As B4XPrefItem = PrefDialog.PrefItems.Get(i)
Log (pi.ItemType)
PrefDialog.CustomListView1.AnimationDuration = 0
If pi.ItemType = PrefDialog.TYPE_NUMERICRANGE Then
Log(pi.Key)
If pi.Key = "HNor" Then
Log(pi.Extra)
pi.Extra.Put("end", 8.5) 'I can set "start, end and interval" with variables in runtime!!
End If
End If
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.