StaggeredGridLayoutManager.LayoutParams
public
static
class
StaggeredGridLayoutManager.LayoutParams
extends RecyclerView.LayoutParams
LayoutParams used by StaggeredGridLayoutManager.
Note that if the orientation is StaggeredGridLayoutManager.VERTICAL
, the width parameter is ignored and if the
orientation is StaggeredGridLayoutManager.HORIZONTAL
the height parameter is ignored because child view is
expected to fill all of the space given to it.
Summary
Inherited constants |
From class
android.view.ViewGroup.LayoutParams
int |
FILL_PARENT
|
int |
MATCH_PARENT
|
int |
WRAP_CONTENT
|
|
Inherited fields |
From class
android.view.ViewGroup.MarginLayoutParams
public
int |
bottomMargin
|
public
int |
leftMargin
|
public
int |
rightMargin
|
public
int |
topMargin
|
|
From class
android.view.ViewGroup.LayoutParams
|
Public methods |
final
int
|
getSpanIndex()
Returns the Span index to which this View is assigned.
|
boolean
|
isFullSpan()
Returns whether this View occupies all available spans or just one.
|
void
|
setFullSpan(boolean fullSpan)
When set to true, the item will layout using all span area.
|
Inherited methods |
|
From class
android.view.ViewGroup.MarginLayoutParams
int
|
getLayoutDirection()
|
int
|
getMarginEnd()
|
int
|
getMarginStart()
|
boolean
|
isMarginRelative()
|
void
|
resolveLayoutDirection(int arg0)
|
void
|
setLayoutDirection(int arg0)
|
void
|
setMarginEnd(int arg0)
|
void
|
setMarginStart(int arg0)
|
void
|
setMargins(int arg0, int arg1, int arg2, int arg3)
|
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
INVALID_SPAN_ID
public static final int INVALID_SPAN_ID
Span Id for Views that are not laid out yet.
Constant Value:
-1
(0xffffffff)
Public constructors
LayoutParams
public LayoutParams (Context c,
AttributeSet attrs)
Parameters |
c |
Context |
attrs |
AttributeSet |
LayoutParams
public LayoutParams (int width,
int height)
Parameters |
width |
int |
height |
int |
Public methods
getSpanIndex
public final int getSpanIndex ()
Returns the Span index to which this View is assigned.
Returns |
int |
The Span index of the View. If View is not yet assigned to any span, returns
INVALID_SPAN_ID .
|
isFullSpan
public boolean isFullSpan ()
Returns whether this View occupies all available spans or just one.
Returns |
boolean |
True if the View occupies all spans or false otherwise. |
setFullSpan
public void setFullSpan (boolean fullSpan)
When set to true, the item will layout using all span area. That means, if orientation
is vertical, the view will have full width; if orientation is horizontal, the view will
have full height.
Parameters |
fullSpan |
boolean : True if this item should traverse all spans. |