Android Question Label on a form

Ryan Pigeon

Member
Hi . I have a very strange problem. I have a simple label on a form and when I click a button on the same form to change the caption of the label, nothing happens. I have declared it and the code is correct. What am I missing?
 

Ryan Pigeon

Member
Hi Erel,

It has something to do with the drawer. if I domment out those 3 lines, the label updates correctly.


Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("dashboardpage")

drawer.Initialize(Me,"drawer",Root,320dip)
drawer.CenterPanel.LoadLayout("dashboardpage")
drawer.LeftPanel.LoadLayout("leftmenu")

'pdialog.Initialize(Root,"End of Day / Z Reports",250dip,200dip)
keyboard.Initialize("keyboard")

B4XPages.AddPage("Scanner",Scanner)
B4XPages.AddPage("Services Page",servicespage)
B4XPages.AddPage("View Product Detail",viewproddetailpage)

ListView1.TwoLinesAndBitmap.SecondLabel.TextColor=xui.Color_Blue
ListView1.TwoLinesAndBitmap.Label.TextColor=xui.Color_DarkGray
ListView1.TwoLinesAndBitmap.Label.TextSize=12

End Sub
 
Upvote 0
Top