Implement updateLayout (native method) on Android.