Example usage for android.view View getDefaultSize

List of usage examples for android.view View getDefaultSize

Introduction

In this page you can find the example usage for android.view View getDefaultSize.

Prototype

public static int getDefaultSize(int size, int measureSpec) 

Source Link

Document

Utility to return a default size.

Usage

From source file:vapor.view.VaporView.java

/**
 * Utility to return a default size./*from   w  ww . ja v  a2 s  .c om*/
 * 
 * @param size
 *            Default size for this view
 * @param measureSpec
 *            Constraints imposed by the parent
 * @return The size this view should be.
 */
public static int defSize(int size, int measureSpec) {
    return View.getDefaultSize(size, measureSpec);
}