Android Example [B4X] [XUI] ASTabMenu with xCustomListView Example

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.
AS Tab Menu with xCustomListView.gif

How to use?
it is easy.
  1. Add a xCustomListView to the form
  2. Add a new Form with only the ASTabMenu inside
  3. create a dummy panel in code, in this example the width of the xcustomlistview * 2 to have 2 times more space:
    1. B4X:
      Dim xpnl_horizontal As B4XView = xui.CreatePanel("")
          xpnl_horizontal.SetLayoutAnimated(0,0,0,xclv_horiontal.GetBase.Width * 2,xclv_horiontal.GetBase.Height)
  4. Load the ASTaBMenu Layout to this panel
  5. Add the panel to the xCustomListView
  6. Finish
Have Fun :)


  • B4A Example with
    7.8 KB · Views: 503