belongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1
LinearLayoutCompat.LayoutParams
public
static
class
LinearLayoutCompat.LayoutParams
extends ViewGroup.MarginLayoutParams
java.lang.Object | |||
↳ | android.view.ViewGroup.LayoutParams | ||
↳ | android.view.ViewGroup.MarginLayoutParams | ||
↳ | android.support.v7.widget.LinearLayoutCompat.LayoutParams |
Known Direct Subclasses |
Per-child layout information associated with ViewLinearLayout.
Summary
Inherited constants |
---|
From
class
android.view.ViewGroup.LayoutParams
|
Fields | |
---|---|
public
int |
gravity
Gravity for the view associated with these LayoutParams. |
public
float |
weight
Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. |
Inherited fields |
---|
From
class
android.view.ViewGroup.MarginLayoutParams
|
From
class
android.view.ViewGroup.LayoutParams
|
Public constructors | |
---|---|
LinearLayoutCompat.LayoutParams(Context c, AttributeSet attrs)
|
|
LinearLayoutCompat.LayoutParams(int width, int height)
|
|
LinearLayoutCompat.LayoutParams(int width, int height, float weight)
Creates a new set of layout parameters with the specified width, height and weight. |
|
LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams p)
|
|
LinearLayoutCompat.LayoutParams(ViewGroup.MarginLayoutParams source)
|
|
LinearLayoutCompat.LayoutParams(LinearLayoutCompat.LayoutParams source)
Copy constructor. |
Inherited methods | |
---|---|
From
class
android.view.ViewGroup.MarginLayoutParams
| |
From
class
android.view.ViewGroup.LayoutParams
| |
From
class
java.lang.Object
|
Fields
gravity
int gravity
Gravity for the view associated with these LayoutParams.
See also:
weight
float weight
Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
Public constructors
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (Context c, AttributeSet attrs)
Parameters | |
---|---|
c |
Context |
attrs |
AttributeSet |
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (int width, int height)
Parameters | |
---|---|
width |
int |
height |
int |
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (int width, int height, float weight)
Creates a new set of layout parameters with the specified width, height and weight.
Parameters | |
---|---|
width |
int : the width, either MATCH_PARENT ,
WRAP_CONTENT or a fixed size in pixels |
height |
int : the height, either MATCH_PARENT ,
WRAP_CONTENT or a fixed size in pixels |
weight |
float : the weight
|
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (ViewGroup.LayoutParams p)
Parameters | |
---|---|
p |
ViewGroup.LayoutParams |
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (ViewGroup.MarginLayoutParams source)
Parameters | |
---|---|
source |
ViewGroup.MarginLayoutParams |
LinearLayoutCompat.LayoutParams
LinearLayoutCompat.LayoutParams (LinearLayoutCompat.LayoutParams source)
Copy constructor. Clones the width, height, margin values, weight, and gravity of the source.
Parameters | |
---|---|
source |
LinearLayoutCompat.LayoutParams : The layout params to copy from.
|
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