Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- super.onMeasure(widthMeasureSpec, heightMeasureSpec);
- final int currentWidth = getMeasuredWidth();
- final int currentHeight = getMeasuredHeight();
- final int width = computeMyViewWidth(currentWidth, currentHeight);
- final int height = computeMyViewHeight(currentWidth, currentHeight);
- setMeasuredDimension(width, height);
- }
Add Comment
Please, Sign In to add comment