Most visited

Recently visited

Toolbar.LayoutParams

public static class Toolbar.LayoutParams
extends ActionBar.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.support.v7.app.ActionBar.LayoutParams
         ↳ android.support.v7.widget.Toolbar.LayoutParams


工具栏的子视图的布局信息。

Toolbar.LayoutParams扩展了ActionBar.LayoutParams以兼容现有的ActionBar API。 有关如何将工具栏用作活动的ActionBar的更多信息,请参阅ActionBarActivity.setActionBar

Summary

Inherited XML attributes

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Inherited constants

From class android.view.ViewGroup.LayoutParams

Inherited fields

From class android.support.v7.app.ActionBar.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Public constructors

Toolbar.LayoutParams(Context c, AttributeSet attrs)
Toolbar.LayoutParams(int width, int height)
Toolbar.LayoutParams(int width, int height, int gravity)
Toolbar.LayoutParams(int gravity)
Toolbar.LayoutParams(Toolbar.LayoutParams source)
Toolbar.LayoutParams(ActionBar.LayoutParams source)
Toolbar.LayoutParams(ViewGroup.MarginLayoutParams source)
Toolbar.LayoutParams(ViewGroup.LayoutParams source)

Inherited methods

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Public constructors

Toolbar.LayoutParams

Toolbar.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context
attrs AttributeSet

Toolbar.LayoutParams

Toolbar.LayoutParams (int width, 
                int height)

Parameters
width int
height int

Toolbar.LayoutParams

Toolbar.LayoutParams (int width, 
                int height, 
                int gravity)

Parameters
width int
height int
gravity int

Toolbar.LayoutParams

Toolbar.LayoutParams (int gravity)

Parameters
gravity int

Toolbar.LayoutParams

Toolbar.LayoutParams (Toolbar.LayoutParams source)

Parameters
source Toolbar.LayoutParams

Toolbar.LayoutParams

Toolbar.LayoutParams (ActionBar.LayoutParams source)

Parameters
source ActionBar.LayoutParams

Toolbar.LayoutParams

Toolbar.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

Toolbar.LayoutParams

Toolbar.LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams

Hooray!