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


This class is deprecated.
starting with API 23 the sdk supports "round" and "notround" configuration qualifiers which are preferred. For more information about configuration qualifiers, see https://developer.android.com/guide/topics/resources/providing-resources.html

Per-child layout information for layouts on wearable devices.

Summary

Inherited constants

int UNSPECIFIED_GRAVITY

int FILL_PARENT

int MATCH_PARENT

int WRAP_CONTENT

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

public int gravity

public int bottomMargin

public int leftMargin

public int rightMargin

public int topMargin

public int height

public LayoutAnimationController.AnimationParameters layoutAnimationParameters

public int width

Public constructors

LayoutParams(Context c, AttributeSet attrs)

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.

LayoutParams(int width, int height, int gravity)

LayoutParams(int width, int height)

LayoutParams(WearableFrameLayout.LayoutParams source)

Inherited methods

int getLayoutDirection()
int getMarginEnd()
int getMarginStart()
boolean isMarginRelative()
void resolveLayoutDirection(int arg0)
void setLayoutDirection(int arg0)
void setMarginEnd(int arg0)
void setMarginStart(int arg0)
void setMargins(int arg0, int arg1, int arg2, int arg3)
void resolveLayoutDirection(int arg0)
void setBaseAttributes(TypedArray arg0, int arg1, int arg2)
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Fields

bottomMarginRound

public int bottomMarginRound

gravityRound

public int gravityRound

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

See also:

heightRound

public int heightRound

leftMarginRound

public int leftMarginRound

rightMarginRound

public int rightMarginRound

topMarginRound

public int topMarginRound

widthRound

public int widthRound

Public constructors

LayoutParams

public LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

LayoutParams

public 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 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels

height int: the height, either ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size in pixels

gravity int: the gravity

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

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

gravityRound int: the gravity override for a round device

See also:

LayoutParams

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

Parameters
width int

height int

gravity int

LayoutParams

public LayoutParams (int width, 
                int height)

Parameters
width int

height int

LayoutParams

public LayoutParams (WearableFrameLayout.LayoutParams source)

Parameters
source WearableFrameLayout.LayoutParams