Android View Set measureExactly(View view, int width, int height)

Here you can find the source of measureExactly(View view, int width, int height)

Description

measure Exactly

Declaration

public static void measureExactly(View view, int width, int height) 

Method Source Code

//package com.java2s;

import android.view.View;
import android.view.View.MeasureSpec;

public class Main {
    public static void measureExactly(View view, int width, int height) {
        int widthSpec = MeasureSpec.makeMeasureSpec(width,
                MeasureSpec.EXACTLY);//  w w  w. j av  a  2s .  c  om
        int heightSpec = MeasureSpec.makeMeasureSpec(height,
                MeasureSpec.EXACTLY);
        view.measure(widthSpec, heightSpec);
    }
}

Related

  1. doAfterLayout(final View view, final Runnable runnable)
  2. initializeDrawListener(View view)
  3. layoutViewAtPos(View view, int offsetX, int offsetY)
  4. makeMultiline(View view)
  5. positionAndResizeView(View v, Rect rect)
  6. showCheatSheet(final View view)
  7. transparent(View view, boolean transparent)
  8. viewBaseSetting(View target)