Code example for ColorDrawable

Methods: setBackgroundDrawable

0
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		// Load as many details from the light response as we can, and get the rest ASAP 
		getActivity().getActionBar().setBackgroundDrawable(new ColorDrawable(ribotItem.getHexColor()));
 
		heroImage.setImageBitmap(ribotItem.getRibotar().get(getActivity(), true));
		getLoaderManager().initLoader(0, null, this).forceLoad();
 
	} 
 
	@Override 
	public Loader<RibotItem> onCreateLoader(int id, Bundle args) {
		getActivity().setProgressBarIndeterminateVisibility(true);
		return new SingleItemLoader(getActivity(), ribotItem.getId());
	} 
 
	@Override 
	public void onLoadFinished(Loader<RibotItem> loader, final RibotItem data) {