Hello,
I'm trying to add barbuttons to the topright, but I'm having a problem with the spacing between the buttons, it's huge.
I've tried also using the designer, but i get the same spacing.
I would prefer doing it in code as it needs to be dynamic.
This is the code I'm using.
Thx.
I'm trying to add barbuttons to the topright, but I'm having a problem with the spacing between the buttons, it's huge.
I've tried also using the designer, but i get the same spacing.
I would prefer doing it in code as it needs to be dynamic.
This is the code I'm using.
B4X:
Dim bb As BarButton
bb.InitializeBitmap(GeneralRoutines.KeepOriginalColors(LoadBitmapResize(File.DirAssets, "calendar_warning_icon.png", 64dip, 64dip, True)), "open_tasks")
Dim bb2 As BarButton
bb2.InitializeBitmap(GeneralRoutines.KeepOriginalColors(LoadBitmapResize(File.DirAssets, "calendar_check_icon.png", 64dip, 64dip, True)), "closed_tasks")
B4XPages.GetNativeParent(Me).TopRightButtons = Array(bb2, bb)
Thx.