public class

ViewPager.LayoutParams

extends ViewGroup.LayoutParams

 java.lang.Object

↳ViewGroup.LayoutParams

↳androidx.viewpager.widget.ViewPager.LayoutParams

Overview

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

Summary

Fields
public intgravity

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

public booleanisDecor

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

Constructors
publicLayoutParams()

publicLayoutParams(Context context, AttributeSet attrs)

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public boolean isDecor

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

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 .

Constructors

public LayoutParams()

public LayoutParams(Context context, AttributeSet attrs)