to top
Android APIs
public static class

ViewPager.LayoutParams

extends ViewGroup.LayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.support.v4.view.ViewPager.LayoutParams

Class Overview

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

Summary

[Expand]
Inherited XML Attributes
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Constants
From class android.view.ViewGroup.LayoutParams
Fields
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 Gravity.
public boolean isDecor true if this view is a decoration on the pager itself and not a view supplied by the adapter.
[Expand]
Inherited Fields
From class android.view.ViewGroup.LayoutParams
Public Constructors

? Examples
ViewPager.LayoutParams()

? Examples
ViewPager.LayoutParams( Context context, AttributeSet attrs)
[Expand]
Inherited Methods
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Fields

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 Gravity.

public boolean isDecor

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

Public Constructors

public ViewPager.LayoutParams ()

public ViewPager.LayoutParams (Context context, AttributeSet attrs)

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.