Code example for AbsListView.LayoutParams

0
				new ActivityUtils().getAdapterVerticalPadding()); 
 
		TextView score = new TextView(context);
		score.setText(String.valueOf(playerScore.getScore()));
		score.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT));
		score.setGravity(Gravity.RIGHT + Gravity.CENTER_VERTICAL);
		score.setTextSize(new ActivityUtils().getAdapterFontSize());
		score.setPadding(new ActivityUtils().getAdapterHorizontalPadding(),
				new ActivityUtils().getAdapterVerticalPadding(), 
				new ActivityUtils().getAdapterHorizontalPadding(), 
				new ActivityUtils().getAdapterVerticalPadding()); 
 
		layout.addView(name);
		layout.addView(score);
 
		return layout;
	} 
}