Skip to content

Most visited

Recently visited

navigation
added in version 24.1.0
belongs to Maven artifact com.android.support:appcompat-v7:27.0.0

ActionBar.LayoutParams

public static class ActionBar.LayoutParams
extends ViewGroup.MarginLayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.support.v7.app.ActionBar.LayoutParams
Known Direct Subclasses


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

Summary

Inherited constants

From class android.view.ViewGroup.LayoutParams

Fields

public int gravity

Gravity for the view associated with these LayoutParams.

Inherited fields

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

Public constructors

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

Inherited methods

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

Fields

gravity

added in version 24.1.0
int gravity

Gravity for the view associated with these LayoutParams.

See also:

Public constructors

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (int width, 
                int height)

Parameters
width int

height int

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (int width, 
                int height, 
                int gravity)

Parameters
width int

height int

gravity int

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (int gravity)

Parameters
gravity int

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (ActionBar.LayoutParams source)

Parameters
source ActionBar.LayoutParams

ActionBar.LayoutParams

added in version 24.1.0
ActionBar.LayoutParams (ViewGroup.LayoutParams source)

Parameters
source ViewGroup.LayoutParams

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)