Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
  2. try {
  3. Method setLayerType = getClass().getMethod("setLayerType", Integer.TYPE, Paint.class);
  4. setLayerType.invoke(this, View.LAYER_TYPE_SOFTWARE, null);
  5. } catch (NoSuchMethodException e) {
  6. } catch (IllegalArgumentException e) {
  7. } catch (IllegalAccessException e) {
  8. } catch (InvocationTargetException e) {
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement