Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

LayoutParams

open class LayoutParams : LayoutParams
kotlin.Any
   ↳ android.view.ViewGroup.LayoutParams
   ↳ androidx.viewpager.widget.ViewPager.LayoutParams

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

Summary

Public constructors

<init>(context: Context!, attrs: AttributeSet!)

Properties

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

<init>

LayoutParams()

<init>

LayoutParams(context: Context!, attrs: AttributeSet!)

Properties

gravity

var gravity: 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.

isDecor

var isDecor: Boolean

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