Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

LayoutParams

open class LayoutParams : MarginLayoutParams
kotlin.Any
   ↳ android.view.ViewGroup.LayoutParams
   ↳ android.view.ViewGroup.MarginLayoutParams
   ↳ androidx.appcompat.app.ActionBar.LayoutParams

Per-child layout information associated with action bar custom views.

Summary

Public constructors

<init>(@NonNull c: Context, attrs: AttributeSet!)

<init>(width: Int, height: Int)

<init>(width: Int, height: Int, gravity: Int)

<init>(gravity: Int)

<init>(source: LayoutParams!)

Properties

Int

Gravity for the view associated with these LayoutParams.

Public constructors

<init>

LayoutParams(@NonNull c: Context, attrs: AttributeSet!)

<init>

LayoutParams(width: Int, height: Int)

<init>

LayoutParams(width: Int, height: Int, gravity: Int)

<init>

LayoutParams(gravity: Int)

<init>

LayoutParams(source: ActionBar.LayoutParams!)

<init>

LayoutParams(source: LayoutParams!)

Properties

gravity

var gravity: Int

Gravity for the view associated with these LayoutParams.