Code example for TableRow

Methods: setVisibility

0
    	int top_ten_pos = mScoreDatabase.TopTenPos(mScore);    	
    	if(top_ten_pos < 10) {
    		String score_str;
    		score_str = (mScore == 1) ? "ponto" : "pontos";  			
    		mTopTenPos.setText(new Integer(top_ten_pos+1).toString()+"º"+" ("+mScore+" "+score_str+")");
    		mTopTenRow.setVisibility(View.VISIBLE);
    	} else 
    		finish();
    } 
 
	@Override 
	public boolean onKey(View v, int keyCode, KeyEvent event) {		
		if ((event.getAction() == KeyEvent.ACTION_DOWN) && 
				(keyCode == KeyEvent.KEYCODE_ENTER) &&
				(mScoreName.length() > 2)) {
					ScoreSaveButton_OnClick(mScoreSaveButton);
		} 
		return false; 
	}