MeasureSpec returns a 0 value - onMeasure()
问题 I have searched for answers regarding this but haven't found a solution. So i am requesting help here. I am creating a custom View. I have overridden onMeasure. Code given Below. @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ super.onMeasure(widthMeasureSpec, heightMeasureSpec); int widthSize,heightSize; int measureWidthSpec = MeasureSpec.getMode(widthMeasureSpec); int measureHeightSpec = MeasureSpec.getMode(heightMeasureSpec); widthSize = getCircleWidth