ArrayIndexOutOfBoundsException mContent.measure(contentWidth, contentHeight);
BaranBerk opened this issue · comments
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
length=18; index=-5
mContent.measure(contentWidth, contentHeight);
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int width = getDefaultSize(0, widthMeasureSpec);
int height = getDefaultSize(0, heightMeasureSpec);
setMeasuredDimension(width, height);
final int contentWidth = getChildMeasureSpec(widthMeasureSpec, 0, width);
final int contentHeight = getChildMeasureSpec(heightMeasureSpec, 0, height);
mContent.measure(contentWidth, contentHeight);
}
Any ideas ?