/** * Setting this to true will set the layer-type HARDWARE for the view, false * will set layer-type SOFTWARE. * * @param enabled */ public void setHardwareAccelerationEnabled(boolean enabled) { if (enabled) setLayerType(View.LAYER_TYPE_HARDWARE, null); else setLayerType(View.LAYER_TYPE_SOFTWARE, null); }
/** * Setting this to true will set the layer-type HARDWARE for the view, false * will set layer-type SOFTWARE. * * @param enabled */ public void setHardwareAccelerationEnabled(boolean enabled) { if (android.os.Build.VERSION.SDK_INT >= 11) { if (enabled) setLayerType(View.LAYER_TYPE_HARDWARE, null); else setLayerType(View.LAYER_TYPE_SOFTWARE, null); } else { Log.e(LOG_TAG, "Cannot enable/disable hardware acceleration for devices below API level 11."); } }
/** * Setting this to true will set the layer-type HARDWARE for the view, false * will set layer-type SOFTWARE. * * @param enabled */ public void setHardwareAccelerationEnabled(boolean enabled) { if (android.os.Build.VERSION.SDK_INT >= 11) { if (enabled) setLayerType(View.LAYER_TYPE_HARDWARE, null); else setLayerType(View.LAYER_TYPE_SOFTWARE, null); } else { Log.e(LOG_TAG, "Cannot enable/disable hardware acceleration for devices below API level 11."); } }
/** * Setting this to true will set the layer-type HARDWARE for the view, false * will set layer-type SOFTWARE. * * @param enabled */ public void setHardwareAccelerationEnabled(boolean enabled) { if (android.os.Build.VERSION.SDK_INT >= 11) { if (enabled) setLayerType(View.LAYER_TYPE_HARDWARE, null); else setLayerType(View.LAYER_TYPE_SOFTWARE, null); } else { Log.e(LOG_TAG, "Cannot enable/disable hardware acceleration for devices below API level 11."); } }
/** * Setting this to true will set the layer-type HARDWARE for the view, false * will set layer-type SOFTWARE. * * @param enabled */ public void setHardwareAccelerationEnabled(boolean enabled) { if (android.os.Build.VERSION.SDK_INT >= 11) { if (enabled) { setLayerType(View.LAYER_TYPE_HARDWARE, null); } else { setLayerType(View.LAYER_TYPE_SOFTWARE, null); } } else { Log.e(LOG_TAG, "Cannot enable/disable hardware acceleration for devices below API level 11."); } }