Lines Matching refs:height
34 * requested aspect ratio. This can happen if both the width and the height are exactly
35 * determined by the layout. To avoid this, ensure that either the height or the width is
42 * Desired width/height ratio
63 * @param aspect the desired width/height ratio in the current UI orientation. Must be a
91 int height = MeasureSpec.getSize(heightMeasureSpec);
105 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height
111 // Need to fit into box <= [width, height] in size.
114 float boxAspectRatio = width / (float) height;
126 // Maximize height, widthSpec is UNSPECIFIED
130 // with width == height == 0
131 // but arbitrarily scale height anyway
137 width = (int) (height * mAspectRatio);
139 height = (int) (width / mAspectRatio);
142 // Override width/height if needed for EXACTLY and AT_MOST specs
144 height = View.resolveSizeAndState(height, heightMeasureSpec, 0);
147 setMeasuredDimension(width, height);