Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- try {
- Method setLayerType = getClass().getMethod("setLayerType", Integer.TYPE, Paint.class);
- setLayerType.invoke(this, View.LAYER_TYPE_SOFTWARE, null);
- } catch (NoSuchMethodException e) {
- } catch (IllegalArgumentException e) {
- } catch (IllegalAccessException e) {
- } catch (InvocationTargetException e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement