Page 1223 - 3-3
P. 1223
pScale_Width, pScale_Height, Default_Scale_TextSize,
TextView_WrapContent_Direction.None, false, true);
}
private LayoutParams(
float pScale_Left, int pScale_Left_BasePosition,
float pScale_Top, int pScale_Top_BasePosition,
float pScale_Width, float pScale_Height, float pScale_TextSize,
TextView_WrapContent_Direction pTextView_WrapContent_Direction, boolean
pTextView_WrapContent_ResizeSurrounded, boolean pTextView_WrapContent_MoveSiblings) {
super(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, Gravity.LEFT
| Gravity.TOP);
setScale_Left(pScale_Left);
setScale_Left_BasePosition(pScale_Left_BasePosition);
setScale_Top(pScale_Top);
setScale_Top_BasePosition(pScale_Top_BasePosition);
setScale_Width(pScale_Width);
setScale_Height(pScale_Height);
setScale_TextSize(pScale_TextSize);
s e t T e x t V i e w _ W r a p C o n t e n t ( p T e x t V i e w _ W r a p C o n t e n t _ D i r e c t i o n ,
pTextView_WrapContent_ResizeSurrounded, pTextView_WrapContent_MoveSiblings);
}
private LayoutParams(ViewGroup.LayoutParams pLayoutParams) {
this(
Default_Scale_Left, Default_Scale_Top,
Default_Scale_Width, Default_Scale_Height);
width = pLayoutParams.width;
height = pLayoutParams.height;
layoutAnimationParameters = pLayoutParams.layoutAnimationParameters;
gravity = Gravity.LEFT | Gravity.TOP;
}
@Override
public String toString() {
return String.format("%08x (%6.3f, %6.3f) (%6.3f, %6.3f)", hashCode(), getScale_Left(),
getScale_Top(), getScale_Right(), getScale_Bottom());
}
private float mScale_Left = Default_Scale_Left;
public float getScale_Left() { return mScale_Left; }
public void setScale_Left(float pScale_Left) { mScale_Left = pScale_Left; }
- 1223 -