Example usage for android.widget Gallery.LayoutParams Gallery.LayoutParams

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

Introduction

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

Prototype

public LayoutParams(int w, int h) 

Source Link

Usage

From source file:android.widget.Gallery.java

@Override
protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
    /*// w  w  w.  j  a  va2  s  .c  o m
     * Gallery expects Gallery.LayoutParams.
     */
    return new Gallery.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
}