Example usage for android.widget AbsoluteLayout.LayoutParams AbsoluteLayout.LayoutParams

List of usage examples for android.widget AbsoluteLayout.LayoutParams AbsoluteLayout.LayoutParams

Introduction

In this page you can find the example usage for android.widget AbsoluteLayout.LayoutParams AbsoluteLayout.LayoutParams.

Prototype

public LayoutParams(int width, int height, int x, int y) 

Source Link

Document

Creates a new set of layout parameters with the specified width, height and location.

Usage

From source file:org.mozilla.gecko.GeckoApp.java

public void enableCameraView() {
    // Some phones (eg. nexus S) need at least a 8x16 preview size
    mMainLayout.addView(cameraView, new AbsoluteLayout.LayoutParams(8, 16, 0, 0));
}