[Q] How put logo in ActionBar topic

SOCIALIZE IT ⇨

Hello Guys,

My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.

I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.

If i watch videos it looks like the icon should be there by default, but not in my case.

I hope somebody can help me.

Thanks in advance.

xda-developers


  1. Need Help Changing Boot Logo and Boot Video for my MXQ box topic
  2. Stuck with Samsung Logo after installing TWRP topic
  3. [Q&A] After flashing stuck on logo topic
  4. [Q] Help me pls!! I got stuck on logo screen after I tried to update lollipop topic
  5. SM-N9005 Stuck On Logo topic
  6. [Q] LG G2 stuck at LG logo screen after Lollipop OTA - TWRP not working topic
  7. Is root required to roll back to KitKat? topic
  8. [REQ] Multi DPI Stock Camera topic
  9. May be this is it for Xperia J topic
  10. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  11. [Q] New to phone - on 24A rooted - where to go from here? topic
  12. Htc desire 816 official lollipop update video review topic
  13. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic
  14. How to roll back to KK topic
  15. What is this in Greenify settings topic
  16. [Q] How to update? topic
  17. my phone stuck on lg logo topic
  18. [Q] Lenovo P780 stuck on logo topic
  19. Remove Att logo from the rear of the phone topic
  20. New Galaxy S6 logo font style...? topic

0 commentaires:

Enregistrer un commentaire