Code example for DynamicLayout

Methods: draw

    public void draw(Canvas canvas) {
        if (mTextPath == null) {
            //Allow the layout to draw the text 
            canvas.translate(5f, 5f); // dejamos un pequenio margen
            //Log.i("tttt","canvas size" + canvas.getWidth()); 
        } else { 
            //Draw directly on the canvas using the supplied path 
            canvas.drawTextOnPath(mText.toString(), mTextPath, 0, 0, mTextPaint);
    public void setAlpha(int alpha) {
        if (mTextPaint.getAlpha() != alpha) {
Stop searching for code, let great code find you!  Add Codota to your java IDE