library_scalablelayout/src/main/java/com/ssomai/android/scalablelayout/ScalableLayout.java
public TextView addNewTextView(String pText,
                                   float pScale_TextSize,
                                   float pScale_Left, float pScale_Top,
                                   float pScale_Width, float pScale_Height,
                                   boolean pDuplicateState) {
        TextView ret = new TextView(getContext());
        addView(ret, pScale_Left, pScale_Top, pScale_Width, pScale_Height);

        setScale_TextSize(ret, pScale_TextSize);
        ret.setText(pText);
        ret.setGravity(Gravity.CENTER);
        ret.setTextColor(Color.BLACK);
        ret.setDuplicateParentStateEnabled(pDuplicateState);

        return ret;
    }
public TextView addNewTextView(String pText,
                                   float pScale_TextSize,
                                   float pScale_Left, float pScale_Top,
                                   float pScale_Width, float pScale_Height,
                                   boolean pDuplicateState) {
        TextView ret = new TextView(getContext());
        addView(ret, pScale_Left, pScale_Top, pScale_Width, pScale_Height);

        setScale_TextSize(ret, pScale_TextSize);
        ret.setText(pText);
        ret.setGravity(Gravity.CENTER);
        ret.setTextColor(Color.BLACK);
        ret.setDuplicateParentStateEnabled(pDuplicateState);

        return ret;
    }
adds new TextView with (TextSize, Left, Top, Width, Height, duplicateState) parameters
@param pText
@param pScale_TextSize
@param pScale_Left
@param pScale_Top
@param pScale_Width
@param pScale_Height
@param pDuplicateState
@return created TextView instance