Toggle button not rendered correctly on Android (closes #1363)