Page 1220 - 3-3
P. 1220
lTextView_ScaleWidth_New, lTV_SLLP.getScale_Height());
} else {
moveChildView(pTV_Text, lTV_SLLP.getScale_Left() -
lTextView_ScaleWidth_Diff / 2, lTV_SLLP.getScale_Top(), lTextView_ScaleWidth_New,
lTV_SLLP.getScale_Height());
}
} break;
default:
break;
}
if(lTV_SLLP.mTextView_WrapContent_ResizeSurrounded) {
// log("setScaleSize From:"+getScaleHeight()+"
T o : " + ( g e t S c a l e H e i g h t ( ) + l T e x t V i e w _ S c a l e H e i g h t _ D i f f ) + "
pScale_TextViewMeasure_Pre:"+pScale_TextViewMeasure_Pre);
s e t S c a l e S i z e ( g e t S c a l e W i d t h ( ) + l T e x t V i e w _ S c a l e W i d t h _ D i f f ,
getScaleHeight()+lTextView_ScaleHeight_Diff, false);
}
}
public enum TextView_WrapContent_Direction {
None(0), Left(10), Center_Horizontal(20), Right(30), Top(100), Center_Vertical(200),
Bottom(300),
;
int mValue = 0;
TextView_WrapContent_Direction(int pValue) {
mValue = pValue;
}
}
/**
* ScalableLayout.LayoutParams
*/
public static class LayoutParams extends FrameLayout.LayoutParams {
// public CharSequence mTest;
public LayoutParams(Context pContext, AttributeSet pAttrs) {
super(pContext, pAttrs);
TextView_WrapContent_Direction dir = TextView_WrapContent_Direction.None;
// 2017.09.05 XML preview 안되던 현상 <eat-comment/> 덕분인듯?
// 그건 아닌듯 그냥 build 후에 하니까 되는듯
TypedArray attrs_view = pContext.obtainStyledAttributes(pAttrs,
mdp3.a10_12_test.R.styleable.View2);
float lScale_Left = attrs_view.getFloat(mdp3.a10_12_test.R.styleable.View2_scale_left,
Default_Scale_Left);
- 1220 -