I got a SegmentedButton which contains 3 "glyph only" ToggleButtons like this: <SegmentedButton maxWidth="Infinity" prefWidth="Infinity"> <buttons> <fx:define> ...
A better menu, can you find here Hey B4X-Forum! New Year, new views! :) The first one from me for this year is a better, simpler, faster and scalable Tab/Bottom-Menu. i spend a lot of time in creating views, some views i need by my self, but some views not and to create a high quality view...
Hello Forum, in this Example i want to show you, how to use the ASTabMenu togehther with the xCustomListView, to handle a lot of Tabs without getting into layout problems. Attached is a B4A Example. Result: How to use? it is easy. Add a xCustomListView to the form Add a new Form with only the...
Coming a bit late to the party, but in case someone's interested, this works fine:
B4X:
Private Sub FillSegmentedButtonsWidthToParent(SegmentedButton As SegmentedButton, itemCount As Int)
' Code based on https://www.b4x.com/android/forum/threads/how-to-style-and-set-tooltip-for-each-segmentedbutton-item.125635/#post-786548
Dim i As Int
Dim oneButtonWidth As Double = SegmentedButton.Parent.As(B4XView).Width / itemCount
Dim JO As JavaObject = SegmentedButton
For i = 0 To (itemCount - 1)
Dim btn As B4XView = JO.RunMethodJO("getButtons", Null).RunMethod("get", Array(i))
btn.Width = oneButtonWidth
Next
End Sub