Code example for ColorDrawable

Methods: setBackgroundDrawable

0
		} 
		else { 
			dialog.setContentView(contentView);
		} 
		 
		ColorDrawable cd = new ColorDrawable(Color.BLACK);
		dialog.getWindow().setBackgroundDrawable(cd);
		dialog.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
 
		// Register to prevent window leakage 
		DialogRegistration.register(contentView.getContext(), dialog);
		 
		return dialog;
	} 
 
	public void setDisplayUtils(DisplayUtils displayUtils) {
		this.displayUtils = displayUtils;
	} 
	 
	public void setButtonFactory(IBeanFactory<SocializeButton> buttonFactory) {
		this.buttonFactory = buttonFactory;