Added nativeView.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null); for complex backgrounds on API Level > 18. (Resolves #1223)

This commit is contained in:
Rossen Hristov
2015-12-12 15:33:04 +02:00
parent f732224248
commit 1c59f7706d
2 changed files with 9 additions and 6 deletions

View File

@@ -60,6 +60,9 @@ function onBackgroundOrBorderPropertyChanged(v: view.View) {
// http://developer.android.com/guide/topics/graphics/hardware-accel.html
nativeView.setLayerType(android.view.View.LAYER_TYPE_SOFTWARE, null);
}
else {
nativeView.setLayerType(android.view.View.LAYER_TYPE_HARDWARE, null);
}
}
else {
// reset the value with the default native value