Code example for LayerDrawable

Methods: draw

0
    } 
 
    @Override 
    protected void onDraw( Canvas aCanvas ) {
        bubble.setBounds( bubbleX, bubbleY, bubbleX + bubbleDiameter, bubbleY + bubbleDiameter );
        layer.draw( aCanvas );
    } 
 
    protected void moveBubble( float gravityX, float gravityY ) {
        bubbleX = bubbleOrigX + ( int ) ( gravityX * WIDTH_MAGNIFY );
        bubbleY = bubbleOrigY + ( int ) ( gravityY * HEIGHT_MAGNIFY );
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE