tufanv Expert Licensed User Longtime User Feb 11, 2019 #1 Hello, I set the top right button #1 via designer. It is a refresh button and displays well. I set the top left button with : Code: Dim btnleftlist As List btnleftlist.Initialize Dim btn As BarButton btn.Initializetext(Chr(0xE7FD),"cancel") btn.SetFont(Font.CreateMaterialIcons(22)) btn.TintColor=Colors.White btnleftlist.Add(btn) Page1.TopLeftButtons=btnleftlist this places the left button at very top. The right button and left button is not at the same top value, one stays higher one stays lower. Is there any way to change left button position a bit ? I want to place a member profile button to left but can't do it like this. TY
Hello, I set the top right button #1 via designer. It is a refresh button and displays well. I set the top left button with : Code: Dim btnleftlist As List btnleftlist.Initialize Dim btn As BarButton btn.Initializetext(Chr(0xE7FD),"cancel") btn.SetFont(Font.CreateMaterialIcons(22)) btn.TintColor=Colors.White btnleftlist.Add(btn) Page1.TopLeftButtons=btnleftlist this places the left button at very top. The right button and left button is not at the same top value, one stays higher one stays lower. Is there any way to change left button position a bit ? I want to place a member profile button to left but can't do it like this. TY
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2019 #2 You can use CSBuilder with VerticalAlign attribute for this. Upvote 0
tufanv Expert Licensed User Longtime User Feb 11, 2019 #3 Erel said: You can use CSBuilder with VerticalAlign attribute for this. Click to expand... So should I use a label and add it to list and then set the topleftbutton to that list because as I know I cant use csbuilder for barbutton ? Upvote 0
Erel said: You can use CSBuilder with VerticalAlign attribute for this. Click to expand... So should I use a label and add it to list and then set the topleftbutton to that list because as I know I cant use csbuilder for barbutton ?
tufanv Expert Licensed User Longtime User Feb 11, 2019 #4 I can't use a label or clasical button as a topleftbutton because it says : -[UILabel _setOwningNavigationItem:]: unrecognized selector sent to instance 0x10582d520 and barbutton does not have an attributedtext feature so I can set it to CS. Upvote 0
I can't use a label or clasical button as a topleftbutton because it says : -[UILabel _setOwningNavigationItem:]: unrecognized selector sent to instance 0x10582d520 and barbutton does not have an attributedtext feature so I can set it to CS.
tufanv Expert Licensed User Longtime User Feb 11, 2019 #5 found the solution here: https://www.b4x.com/android/forum/threads/barbutton-icons.74192/#content Upvote 0