简体   繁体   中英

Logo and title in actionbar in android

I use action bar in my app (actionbarsherlock) and I wanted I wanted the title not to be shown but just wiew the logo in ab. So I tried to use

<item name="abDisplayOptions">useLogo</item>

Yes, the title disappeared, but the logo isn't shown anymore. Why? And how can I solve it using just XML?

Ok. I've solved this problem by

<item name="abIcon">@drawable/logo</item>

and then

<item name="abDisplayOptions">showHome</item>

But I do not understand why it didn't work with abLogo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM