belongs to Maven artifact com.android.support:gridlayout-v7:28.0.0-alpha1
GridLayout.Spec
public
static
class
GridLayout.Spec
extends Object
java.lang.Object | |
↳ | android.support.v7.widget.GridLayout.Spec |
A Spec defines the horizontal or vertical characteristics of a group of cells. Each spec. defines the grid indices and alignment along the appropriate axis.
The grid indices are the leading and trailing edges of this cell group.
See GridLayout
for a description of the conventions used by GridLayout
for grid indices.
The alignment property specifies how cells should be aligned in this group. For row groups, this specifies the vertical alignment. For column groups, this specifies the horizontal alignment.
Use the following static methods to create specs:
spec(int)
spec(int, int)
spec(int, Alignment)
spec(int, int, Alignment)
spec(int, float)
spec(int, int, float)
spec(int, Alignment, float)
spec(int, int, Alignment, float)
Summary
Public methods | |
---|---|
boolean
|
equals(Object that)
Returns |
GridLayout.Alignment
|
getAbsoluteAlignment(boolean horizontal)
|
int
|
hashCode()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
equals
boolean equals (Object that)
Returns true
if the class
, alignment
and span
properties of this Spec and the supplied parameter are pairwise equal,
false
otherwise.
Parameters | |
---|---|
that |
Object : the object to compare this spec with |
Returns | |
---|---|
boolean |
true if the specified object is equal to this
Spec ; false otherwise
|
getAbsoluteAlignment
GridLayout.Alignment getAbsoluteAlignment (boolean horizontal)
Parameters | |
---|---|
horizontal |
boolean |
Returns | |
---|---|
GridLayout.Alignment |
hashCode
int hashCode ()
Returns | |
---|---|
int |
Annotations
Interfaces
- ActionMenuView.OnMenuItemClickListener
- PopupMenu.OnDismissListener
- PopupMenu.OnMenuItemClickListener
- RecyclerView.ChildDrawingOrderCallback
- RecyclerView.ItemAnimator.ItemAnimatorFinishedListener
- RecyclerView.LayoutManager.LayoutPrefetchRegistry
- RecyclerView.OnChildAttachStateChangeListener
- RecyclerView.OnItemTouchListener
- RecyclerView.RecyclerListener
- RecyclerView.SmoothScroller.ScrollVectorProvider
- SearchView.OnCloseListener
- SearchView.OnQueryTextListener
- SearchView.OnSuggestionListener
- ShareActionProvider.OnShareTargetSelectedListener
- ThemedSpinnerAdapter
- Toolbar.OnMenuItemClickListener
Classes
- ActionMenuView
- ActionMenuView.LayoutParams
- AppCompatAutoCompleteTextView
- AppCompatButton
- AppCompatCheckBox
- AppCompatCheckedTextView
- AppCompatEditText
- AppCompatImageButton
- AppCompatImageView
- AppCompatMultiAutoCompleteTextView
- AppCompatRadioButton
- AppCompatRatingBar
- AppCompatSeekBar
- AppCompatSpinner
- AppCompatTextView
- CardView
- DefaultItemAnimator
- DividerItemDecoration
- GridLayout
- GridLayout.Alignment
- GridLayout.LayoutParams
- GridLayout.Spec
- GridLayoutManager
- GridLayoutManager.DefaultSpanSizeLookup
- GridLayoutManager.LayoutParams
- GridLayoutManager.SpanSizeLookup
- LinearLayoutCompat
- LinearLayoutCompat.LayoutParams
- LinearLayoutManager
- LinearLayoutManager.LayoutChunkResult
- LinearSmoothScroller
- LinearSnapHelper
- ListPopupWindow
- OrientationHelper
- PagerSnapHelper
- PopupMenu
- RecyclerView
- RecyclerView.Adapter
- RecyclerView.AdapterDataObserver
- RecyclerView.EdgeEffectFactory
- RecyclerView.ItemAnimator
- RecyclerView.ItemAnimator.ItemHolderInfo
- RecyclerView.ItemDecoration
- RecyclerView.LayoutManager
- RecyclerView.LayoutManager.Properties
- RecyclerView.LayoutParams
- RecyclerView.OnFlingListener
- RecyclerView.OnScrollListener
- RecyclerView.RecycledViewPool
- RecyclerView.Recycler
- RecyclerView.SimpleOnItemTouchListener
- RecyclerView.SmoothScroller
- RecyclerView.SmoothScroller.Action
- RecyclerView.State
- RecyclerView.ViewCacheExtension
- RecyclerView.ViewHolder
- RecyclerViewAccessibilityDelegate
- RecyclerViewAccessibilityDelegate.ItemDelegate
- SearchView
- ShareActionProvider
- SimpleItemAnimator
- SnapHelper
- StaggeredGridLayoutManager
- StaggeredGridLayoutManager.LayoutParams
- SwitchCompat
- ThemedSpinnerAdapter.Helper
- Toolbar
- Toolbar.LayoutParams
- Toolbar.SavedState
- TooltipCompat