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 |
可穿戴设备上布局的每个孩子的布局信息。
Summary
Inherited constants |
From class android.widget.FrameLayout.LayoutParams
|
From class android.view.ViewGroup.MarginLayoutParams
int |
DEFAULT_MARGIN_RELATIVE |
|
From class android.view.ViewGroup.LayoutParams
int |
FILL_PARENT |
int |
MATCH_PARENT |
int |
WRAP_CONTENT |
|
Inherited fields |
From class android.widget.FrameLayout.LayoutParams
|
From class android.view.ViewGroup.MarginLayoutParams
public int |
bottomMargin |
public int |
leftMargin |
public int |
rightMargin |
public int |
topMargin |
|
From class android.view.ViewGroup.LayoutParams
public int |
height |
public LayoutAnimationController.AnimationParameters |
layoutAnimationParameters |
public int |
width |
|
Inherited methods |
From class android.view.ViewGroup.MarginLayoutParams
final void |
copyMarginsFrom(ViewGroup.MarginLayoutParams arg0) |
void |
encodeProperties(ViewHierarchyEncoder arg0) |
int |
getLayoutDirection() |
int |
getMarginEnd() |
int |
getMarginStart() |
boolean |
isLayoutRtl() |
boolean |
isMarginRelative() |
void |
onDebugDraw(View arg0, Canvas arg1, Paint arg2) |
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 |
setMarginsRelative(int arg0, int arg1, int arg2, int arg3) |
|
From class android.view.ViewGroup.LayoutParams
String |
debug(String arg0) |
void |
encodeProperties(ViewHierarchyEncoder arg0) |
void |
onDebugDraw(View arg0, Canvas arg1, Paint arg2) |
void |
resolveLayoutDirection(int arg0) |
void |
setBaseAttributes(TypedArray arg0, int arg1, int arg2) |
static String |
sizeToString(int arg0) |
|
From class java.lang.Object
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
int bottomMarginRound
gravityRound
int gravityRound
与这些布局参数在圆形设备上关联的视图一起应用的引力。
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)
为正方形和圆形设备创建一组具有指定宽度,高度和重量的新布局参数。
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 |
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
|