Code example for StaticLayout

Methods: draw

0
Rect bounds = getBounds();
        int x = bounds.left + mConfig.mTitleLeft;
        int y = mTitleY;
        canvas.translate(x, y);
        mTitleLayout.draw(canvas);
        canvas.translate(-x, -y);
    } 
 
    @Override 
    public int getOpacity() { 
        return PixelFormat.TRANSLUCENT;
    } 
 
    @Override 
    public void setAlpha(int alpha) {
    } 
 
    @Override 
    public void setColorFilter(ColorFilter cf) {
Connect your IDE to all the code out there  Get Codota for Java