Implement NativeBridge function NXActivity::setLayout