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

0 commentaires:

Enregistrer un commentaire