Search code examples
codenameonemobile-application

Codename one:Unable to set Toastbar position at centre


I am not able to set Toastbar at centre position. I am using below code to set toastbar at centre position "ToastBar.getInstance().setPosition(Component.CENTER);" But this is not working.


Solution

  • Center would probably take up the entire screen. Currently the only two supported values for position are TOP & BOTTOM as indicated in the param argument in the javadoc.