Android Question [solved] AHPageContainer DeletePage

wroyw

Member
Licensed User
Hi,
I use the AHViewPager. Now I will make a Page visible or invisble.
I think I must use the AddPage and DeletePage commands.
When I use DeletePage the Page is deleted but the Title of this page is still visble ...
From this deleted Page all pages have a wrong Title
B4X:
  If cs.Infos.Flags.IsMA Then
     If Container.GetTitle(5) <> "Device mA output" Then
       Container.AddPageAt(Pan(4),"Device mA output",5)
     End If
   Else
     If Container.GetTitle(5) = "Device mA output" Then
       Container.DeletePage(5)
     End If
   End If
   Container.notifyDataSetChanged
 
Top