Libraries for ActionBar (from Android Developers documentation)
Changing background color for ActionBar ( in onCreate() ): ActionBar actionBar = getActionBar(); ColorDrawable colorDrawable = new ColorDrawable (Color.parseColor("place desired hex number")); actionBar.setBackgroundDrawable(colorDrawable); Changing text color for ActionBar: actionBar.setTitle(Html.fromHtml("<font color=\"white\">" + getString(R.string.app_name)/desired text + "</font>"));
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorExploring Android and mobile web design, security, and development. Archives
March 2021
Categories |