I have some problems with action bar in android. I want to have some icons on left side and on right side. On left side I want to have 2 icons and text and on right side I would like to have 6 icons, but when text is very long I want to hide some icons on right side. In standard action bar I can add items only from right to left, so I decide to create own action bar. How I can start? What I need to know to do that. Can you give me some advices or examples?
Share
Its very simple. Create new class that will be extended from some layout. Inflate xml which will be have icons and buttons. And make methods for logic show\hide\set listeners and so on. I did it early but now i can say that it’s not so good idea. There are guidelines and very important to create apps as it must be.
Example from my old project :
XML :
Good luck!