开发者

GreenDroid library , set drawable title in ActionBar

开发者 https://www.devze.com 2023-03-20 23:28 出处:网络
R开发者_StackOverflow中文版egarding GreenDroid library https://github.com/cyrilmottier/GreenDroid:

R开发者_StackOverflow中文版egarding GreenDroid library https://github.com/cyrilmottier/GreenDroid:

  1. I want to set a logo as title in the Action Bar. I've tried a couple of methods but with no result. How should I proceed?

  2. When creating a GDApplication file, and set as getHomeActivity my main activity class, inside that activity my normal ActionBar title disappears, why and how could I bring it back ?


I solved my problems like this: I used the setType method for the ActionBar and I set it to ActionBar.Type.Empty and then only call the setTitle method for setting a custom title.

0

精彩评论

暂无评论...
验证码 换一张
取 消