I would like to display all items (SquareTextView) in GridView but on some resolution not all item are visible and user need to scroll. I would like to show all content for user without scrolling.
SquareTextView contain methods (Adding this method to CGridView does not help):
@Override
protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec)
{
final int width = getDefaultSize(getSuggestedMinimumWidth(),widthMeasureSpec);
setMeasuredDimension(width, width);
}
@Override
protected void onSizeChanged(final int w, final int h, final int oldw, final int oldh)
{
super.onSizeChanged(w, w, oldw, oldh);
}
//items are matching their parent How should I calculate Grid width/height to display all content? I look at: Gridview height gets cut but answer does not help.