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) {
Stop searching for code, let great code find you!  Add Codota to your java IDE