Check out example codes for "how to change actionbar color in android programmatically". It will help you in understanding the concepts better.

Code Example 1

getSherlockActivity().getSupportActionBar().setBackgroundDrawable(new ColorDrawable(0xff00ACED));
mActionBar.setBackgroundDrawable(new ColorDrawable(0xff00DDED));
mActionBar.setDisplayShowTitleEnabled(false);
mActionBar.setDisplayShowTitleEnabled(true);

Learn ReactJs, React Native from akashmittal.com