Code example for StaticLayout

Methods: getWidthincreaseWidthTo

0
		} else { 
			valueLayout.increaseWidthTo(widthItems);
		} 
 
		if (widthLabel > 0) {
			if (labelLayout == null || labelLayout.getWidth() > widthLabel) {
				labelLayout = new StaticLayout(label, valuePaint,
						widthLabel, Layout.Alignment.ALIGN_NORMAL, 1,
						getAdditionalItemHeight(), false); 
			} else { 
				labelLayout.increaseWidthTo(widthLabel);
			} 
		} 
	} 
 
	@Override 
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int widthMode = MeasureSpec.getMode(widthMeasureSpec);
		int heightMode = MeasureSpec.getMode(heightMeasureSpec);
		int widthSize = MeasureSpec.getSize(widthMeasureSpec);
Connect your IDE to all the code out there  Get Codota for Java