Skip to content

Most visited

Recently visited

navigation

WearableFrameLayout.LayoutParams

public static class WearableFrameLayout.LayoutParams
extends FrameLayout.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.FrameLayout.LayoutParams
         ↳ android.support.wearable.view.WearableFrameLayout.LayoutParams


Per-child layout information for layouts on wearable devices.

Summary

Inherited constants

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.LayoutParams

Fields

public int bottomMarginRound

public int gravityRound

The gravity to apply with the View to which these layout parameters are associated on a round device.

public int heightRound

public int leftMarginRound

public int rightMarginRound

public int topMarginRound

public int widthRound

Inherited fields

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

Public constructors

WearableFrameLayout.LayoutParams(Context c, AttributeSet attrs)

WearableFrameLayout.LayoutParams(int width, int height, int gravity, int widthRound, int heightRound, int gravityRound)

Creates a new set of layout parameters with the specified width, height and weight for both square and round devices.

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

WearableFrameLayout.LayoutParams(int width, int height)

WearableFrameLayout.LayoutParams(WearableFrameLayout.LayoutParams source)

Inherited methods

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

Fields

bottomMarginRound

int bottomMarginRound

gravityRound

int gravityRound

The gravity to apply with the View to which these layout parameters are associated on a round device.

See also:

heightRound

int heightRound

leftMarginRound

int leftMarginRound

rightMarginRound

int rightMarginRound

topMarginRound

int topMarginRound

widthRound

int widthRound

Public constructors

WearableFrameLayout.LayoutParams

WearableFrameLayout.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

WearableFrameLayout.LayoutParams

WearableFrameLayout.LayoutParams (int width, 
                int height, 
                int gravity, 
                int widthRound, 
                int heightRound, 
                int gravityRound)

Creates a new set of layout parameters with the specified width, height and weight for both square and round devices.

Parameters
width int: the width on a square device, 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

gravity int: the gravity

widthRound int: the width override for a round device, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

heightRound int: the height override for a round device, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

gravityRound int: the gravity override for a round device

See also:

WearableFrameLayout.LayoutParams

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

Parameters
width int

height int

gravity int

WearableFrameLayout.LayoutParams

WearableFrameLayout.LayoutParams (int width, 
                int height)

Parameters
width int

height int

WearableFrameLayout.LayoutParams

WearableFrameLayout.LayoutParams (WearableFrameLayout.LayoutParams source)

Parameters
source WearableFrameLayout.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)