Guest User

Untitled

a guest
Jul 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.     @Override
  2.     protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
  3.         super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  4.         final int currentWidth = getMeasuredWidth();
  5.         final int currentHeight = getMeasuredHeight();
  6.         final int width = computeMyViewWidth(currentWidth, currentHeight);
  7.         final int height = computeMyViewHeight(currentWidth, currentHeight);
  8.         setMeasuredDimension(width, height);
  9.     }
Add Comment
Please, Sign In to add comment