public static class

WearableFrameLayout.LayoutParams

extends FrameLayout.LayoutParams

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

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

Class Overview

Per-child layout information for layouts on wearable devices.

Summary

[Expand]
Inherited Constants
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
[Expand]
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)
[Expand]
Inherited Methods
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

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.

See Also

public int heightRound

public int leftMarginRound

public int rightMarginRound

public int topMarginRound

public int widthRound

Public Constructors

public WearableFrameLayout.LayoutParams (Context c, AttributeSet attrs)

public 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 the width on a square device, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
height the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
gravity the gravity
widthRound the width override for a round device, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
heightRound the height override for a round device, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels
gravityRound the gravity override for a round device
See Also

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

public WearableFrameLayout.LayoutParams (int width, int height)

public WearableFrameLayout.LayoutParams (WearableFrameLayout.LayoutParams source)