ViewPager.LayoutParams


public class ViewPager.LayoutParams extends ViewGroup.LayoutParams


Layout parameters that should be supplied for views added to a ViewPager.

Summary

Public fields

int

Gravity setting for use on decor views only: Where to position the view page within the overall ViewPager container; constants are defined in android.view.Gravity.

boolean

true if this view is a decoration on the pager itself and not a view supplied by the adapter.

Public constructors

Inherited Constants

From android.view.ViewGroup.LayoutParams
static final int

This field is deprecated.

static final int
static final int

Inherited methods

From android.view.ViewGroup.LayoutParams
void
resolveLayoutDirection(int layoutDirection)
void
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)

Public fields

gravity

Added in 1.1.0-rc01
public int gravity

Gravity setting for use on decor views only: Where to position the view page within the overall ViewPager container; constants are defined in android.view.Gravity.

isDecor

Added in 1.1.0-rc01
public boolean isDecor

true if this view is a decoration on the pager itself and not a view supplied by the adapter.

Public constructors

LayoutParams

Added in 1.1.0-rc01
public LayoutParams()

LayoutParams

Added in 1.1.0-rc01
public LayoutParams(@NonNull Context context, @Nullable AttributeSet attrs)