Application level
In your Android manifest file, add the following attribute to the tag to enable hardware acceleration for your entire application:
<application android:hardwareAccelerated="true" ...>
References
https://developer.android.com/guide/topics/graphics/hardware-accel.html