Code example for FrameLayout

Methods: removeAllViews

0
        if (keyCode == KeyEvent.KEYCODE_N) {
            mBoundService.resetGame();
            gameOver = false;
            Toast.makeText(BlackJackTableActivity.this, "Starting new game", Toast.LENGTH_LONG)
                    .show();
            table.removeAllViews();
            mBoundService.start();
        } 
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            onDestroy(); 
        } 
        return true; 
    } 
 
    @Override 
    protected void onDestroy() { 
        super.onDestroy(); 
        finish();
    } 
 
    private void drawPlayerCards(Player player) {