Code example for TableLayout

Methods: removeAllViews

0
	 
	/** 
	 * Clear content of this dialog. 
	 */ 
	public void clearContent(){ 
		mTableLayout.removeAllViews();
		mHasContent = false;
	} 
	 
	/** 
	 * Add a player and his used tickets to the TableLayout. 
	 * 
	 * @param playerIconId the id of the players icon 
	 * @param playername the players name 
	 * @param usedTicketIcons the tickets 
	 */ 
	public void addPlayer(int playerIconId, String playername, Map<Bitmap, Integer> tickets){
		 
		// do not use the full display width to display the used tickets (just 90%) 
    	int displayWidth = mDisplay != null
    		? (int)(mDisplay.getWidth() * 0.9)