Page 1210 - 3-3
P. 1210
// 오른쪽에 있는 경우
else if(pSrc.getScale_Right() <= pDst.getScale_Left() &&
(
( pSrc.getScale_Top() <= pDst.getScale_Top() && pDst.getScale_Top() <=
pSrc.getScale_Bottom())
||
( pSrc.getScale_Top() <= pDst.getScale_Bottom() &&
pDst.getScale_Bottom() <= pSrc.getScale_Bottom())
||
( pSrc.getScale_Top() >= pDst.getScale_Top() &&
pDst.getScale_Bottom() >= pSrc.getScale_Bottom())
)) {
return ViewPosition.Right;
}
// 감싸고 있는 경우
else if(pDst.getScale_Top() <= pSrc.getScale_Top() &&
pDst.getScale_Left() <= pSrc.getScale_Left() &&
pDst.getScale_Right() >= pSrc.getScale_Right() &&
pDst.getScale_Bottom() >= pSrc.getScale_Bottom()) {
return ViewPosition.Surrounded;
}
return ViewPosition.Nothing;
}
private void updateTextViewSize(TextView pTV_Text, float pScale_TextViewMeasure_Pre) {
refreshTextChangedListener(pTV_Text);
ScalableLayout.LayoutParams lTV_SLLP = getChildLayoutParams(pTV_Text);
TextView_WrapContent_Direction lTextView_WrapContent_Direction =
lTV_SLLP.mTextView_WrapContent_Direction;
if(lTextView_WrapContent_Direction == TextView_WrapContent_Direction.None) {
return;
}
float lTextView_ScaleWidth_Old = lTV_SLLP.getScale_Width();
float lTextView_ScaleHeight_Old = lTV_SLLP.getScale_Height();
float lTextView_ScaleWidth_New = lTextView_ScaleWidth_Old;
float lTextView_ScaleHeight_New = lTextView_ScaleHeight_Old;
{
// get new scale size
// 새로운 Scale 크기를 가져옴
float lTextSize_New = lTV_SLLP.mScale_TextSize * pScale_TextViewMeasure_Pre;
// log("updateTextViewHeight 1.1
- 1210 -