I\'m having trouble changing androids action bar title color programmatically for v11 and up. I can get it done in xml but need to change it dynamically in code. How should
Using Kotlin and SupportActionBar Use this ->
val mSpannableText = SpannableString(supportActionBar?.title) mSpannableText.setSpan( ForegroundColorSpan(Color.BLUE), 0, mSpannableText.length, Spannable.SPAN_INCLUSIVE_INCLUSIVE ) supportActionBar?.title = mSpannableText