Code example for ProgressBar

0
public class ProgressBarFactory implements AbstractViewFactory 
{ 
	@Override 
	public Widget create(Activity activity, int handle) 
	{ 
		ProgressBar progressBar = new ProgressBar( activity, null, android.R.attr.progressBarStyleHorizontal ); 
 
		return new ProgressBarWidget( handle, progressBar ); 
	} 
}