toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-layout
/
com.urbanairship.android.layout.widget
/
WeightlessLinearLayout
/
LayoutParams
Layout
Params
open
class
LayoutParams
:
ViewGroup.MarginLayoutParams
Per-child layout information associated with WeightlessLinearLayout.
Members
Constructors
Layout
Params
Link copied to clipboard
constructor
(
c
:
Context
,
attrs
:
AttributeSet
)
constructor
(
width
:
Int
,
height
:
Int
)
constructor
(
width
:
Int
,
height
:
Int
,
maxWidthPercent
:
Float
,
maxHeightPercent
:
Float
)
Creates a new set of layout parameters with the specified width, height and max width/height percentages.
constructor
(
p
:
ViewGroup.LayoutParams
)
constructor
(
source
:
ViewGroup.MarginLayoutParams
)
Properties
gravity
Link copied to clipboard
open
var
gravity
:
Int
Gravity for the view associated with these LayoutParams.
max
Height
Percent
Link copied to clipboard
open
var
maxHeightPercent
:
Float
max
Width
Percent
Link copied to clipboard
open
var
maxWidthPercent
:
Float
Inherited properties
bottom
Margin
Link copied to clipboard
open
var
bottomMargin
:
Int
FILL_PARENT
Link copied to clipboard
val
FILL_PARENT
:
Int
=
-1
height
Link copied to clipboard
open
var
height
:
Int
layout
Animation
Parameters
Link copied to clipboard
open
var
layoutAnimationParameters
:
LayoutAnimationController.AnimationParameters
left
Margin
Link copied to clipboard
open
var
leftMargin
:
Int
MATCH_PARENT
Link copied to clipboard
val
MATCH_PARENT
:
Int
=
-1
right
Margin
Link copied to clipboard
open
var
rightMargin
:
Int
top
Margin
Link copied to clipboard
open
var
topMargin
:
Int
width
Link copied to clipboard
open
var
width
:
Int
WRAP_CONTENT
Link copied to clipboard
val
WRAP_CONTENT
:
Int
=
-2
Functions
to
String
Link copied to clipboard
@
NonNull
open
fun
toString
(
)
:
String
Inherited functions
get
Layout
Direction
Link copied to clipboard
open
fun
getLayoutDirection
(
)
:
Int
get
Margin
End
Link copied to clipboard
open
fun
getMarginEnd
(
)
:
Int
get
Margin
Start
Link copied to clipboard
open
fun
getMarginStart
(
)
:
Int
is
Margin
Relative
Link copied to clipboard
open
fun
isMarginRelative
(
)
:
Boolean
resolve
Layout
Direction
Link copied to clipboard
open
fun
resolveLayoutDirection
(
layoutDirection
:
Int
)
set
Layout
Direction
Link copied to clipboard
open
fun
setLayoutDirection
(
layoutDirection
:
Int
)
set
Margin
End
Link copied to clipboard
open
fun
setMarginEnd
(
end
:
Int
)
set
Margins
Link copied to clipboard
open
fun
setMargins
(
left
:
Int
,
top
:
Int
,
right
:
Int
,
bottom
:
Int
)
set
Margin
Start
Link copied to clipboard
open
fun
setMarginStart
(
start
:
Int
)