Page 1229 - 3-3
P. 1229
* @return
*/
public ImageView addNewImageView(Drawable drawable, float pScale_Left, float pScale_Top,
float pScale_Width, float pScale_Height, boolean pDuplicateState) {
ImageView lNewImageView = new ImageView(getContext());
lNewImageView.setImageDrawable(drawable);
lNewImageView.setScaleType(ScaleType.FIT_XY);
lNewImageView.setDuplicateParentStateEnabled(pDuplicateState);
addView(lNewImageView, pScale_Left, pScale_Top, pScale_Width, pScale_Height);
return lNewImageView;
}
////////////////////////// Log
@Override
public String toString() {
return String.format("{ScalableLayout:%08x}", this.hashCode());
}
void log(String pLog) {
if(sLogTag_Global != null) {
Log.e(sLogTag_Global, this+"] "+pLog);
}
if(mLogTag_This != null) {
Log.e(mLogTag_This, this+"] "+pLog);
}
}
// private static TextView mTV_Log;
// private static void logS(String pLog) {
// if(mTV_Log != null) {
// mTV_Log.setText(pLog+"\n"+mTV_Log.getText());
// }
// }
private String mLogTag_This = null;
public String getLogTag_This() {
return mLogTag_This;
}
/**
* setLoggable("ScalableLayout");
*/
public void setThisLoggable() {
setThisLoggable("ScalableLayout");
}
/**
* Log 를 출력할수 있게함
- 1229 -