I am using the lib MaterialDrawer (https://github.com/mikepenz/MaterialDrawer). i can set SwitchDrawerItem true of false on drawerbuilder with the command below:
new SwitchDrawerItem().withName("Record audio").withIcon(FontAwesome.Icon.faw_microphone).withChecked(true).withIdentifier(111).withOnCheckedChangeListener(onCheckedChangeListener).withSelectable(false),
but now i have other method (using floating button) that will set this SwitchDrawerItem to true. i had tried
result.setSelection(111, true);
it only sets selection but not check the checkbox.
please help me . Many thanks.
Best regards, ben