hi all
i m trying to use the ListSelectionView , but the 4 buttons dont show those >> or > or << arrows .
when i used a css code for buttons , the >> button showed an empty square ....
how to target those buttons , through css ?
also how to disable those >> buttons ?
removing the CSS file will let the arrows appear on some devices but not others (really couldnt find a pattern , some w10 , some w7 )...
i wish i could :
0- actually show the buttons arrows with the global css , or dedicating a css to the slv alone that will show the arrows.
1- control their looks
2- detect their action
3 - disable / enable them as needed
No it doesn't ..
It does on some devices ...
And shows blank buttons on many other devices ... without any modification.... and many of the affected devices are Vanilla windows 7 fresh installation
I see it too. It will happen when there is no internet connection. This control is implemented in a strange and unreliable way. It downloads FontAwesome font file from a CDN.
It doesn't provide any way to load the font from a different place.
Workaround:
1. Add a label named lblFontAwesome with the visual designer. Set its font to FontAwesome and the text size to 12.
2. Call this sub after you add the ListSelectionView:
B4X:
Sub SetListSelectionButtons (ListSelection As ListSelectionView)
Dim jo As JavaObject = ListSelection
Dim children As List = jo.RunMethod("getChildrenUnmodifiable", Null)
If children.Size = 0 Then
CallSubDelayed2(Me, "SetListSelectionButtons", ListSelection)
Return
End If
Dim p As Pane = children.Get(0)
For Each n As Node In p.GetAllViewsRecursive
If n Is Button Then
Dim b As Button = n
b.Font = lblFontAwesome.Font
End If
Next
End Sub