Created
January 19, 2017 15:25
-
-
Save quiro91/fc24c6ce11ec12526bd39d9fa1a68c9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { | |
Log.v("Chart onMeasure w", MeasureSpec.toString(widthMeasureSpec)); | |
Log.v("Chart onMeasure h", MeasureSpec.toString(heightMeasureSpec)); | |
int desiredWidth = getSuggestedMinimumWidth() + getPaddingLeft() + getPaddingRight(); | |
int desiredHeight = getSuggestedMinimumHeight() + getPaddingTop() + getPaddingBottom(); | |
setMeasuredDimension(measureDimension(desiredWidth, widthMeasureSpec), | |
measureDimension(desiredHeight, heightMeasureSpec)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment