Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- SpannableString s = new SpannableString(iconMedic + " Activity");
- s.setSpan(
- new TypefaceSpan(this, FONT_AWESOME, 40, lightBlue),
- 0,
- 1,
- Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
- );
- // Update the action bar title with the TypefaceSpan instance
- ActionBar actionBar = getActionBar();
- actionBar.setTitle(s);
- actionBar.setIcon(android.R.color.transparent); // hide the app's icon
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement