List of usage examples for android.view View resolveSize
public static int resolveSize(int size, int measureSpec)
From source file:se.johan.wendler.ui.view.DragGripView.java
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(/* www .j av a2 s.c o m*/ View.resolveSize((int) (HORIZ_RIDGES * (mRidgeSize + mRidgeGap) - mRidgeGap) + getPaddingLeft() + getPaddingRight(), widthMeasureSpec), View.resolveSize((int) mRidgeSize, heightMeasureSpec)); }
From source file:com.brookmanholmes.bma.wizard.ui.StepPagerStrip.java
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(/*from w w w.j a v a 2 s. co m*/ View.resolveSize((int) (pageCount * (tabWidth + indicatorSpacing) - indicatorSpacing) + getPaddingLeft() + getPaddingRight(), widthMeasureSpec), View.resolveSize((int) tabHeight + getPaddingTop() + getPaddingBottom(), heightMeasureSpec)); }
From source file:id.co.datascrip.dtswarehousesystem.custom.StepPagerStrip.java
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(/*from w ww.j av a 2 s. co m*/ View.resolveSize((int) (mPageCount * (mTabWidth + mTabSpacing) - mTabSpacing) + getPaddingLeft() + getPaddingRight(), widthMeasureSpec), View.resolveSize((int) mTabHeight + getPaddingTop() + getPaddingBottom(), heightMeasureSpec)); }
From source file:com.actionbarsherlock.internal.widget.IcsProgressBar.java
@Override protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { Drawable d = mCurrentDrawable;//from w ww. j a va2s. c o m int dw = 0; int dh = 0; if (d != null) { dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth())); dh = Math.max(mMinHeight, Math.min(mMaxHeight, d.getIntrinsicHeight())); } updateDrawableState(); dw += getPaddingLeft() + getPaddingRight(); dh += getPaddingTop() + getPaddingBottom(); if (IS_HONEYCOMB) { setMeasuredDimension(View.resolveSizeAndState(dw, widthMeasureSpec, 0), View.resolveSizeAndState(dh, heightMeasureSpec, 0)); } else { setMeasuredDimension(View.resolveSize(dw, widthMeasureSpec), View.resolveSize(dh, heightMeasureSpec)); } }
From source file:vapor.view.VaporView.java
/** * Version of resolveSizeAndState(int, int, int) returning only the * MEASURED_SIZE_MASK bits of the result. * //w ww.j a va2 s .c o m * @param size * How big the view wants to be * @param measureSpec * Constraints imposed by the parent * @return */ public static int resolve(int size, int measureSpec) { return View.resolveSize(size, measureSpec); }