![]() ![]() To do this we will add the following line to our app’s theme. Action Bar Heightįirst up, we have to increase the height. While working on a new app today, I realized that I could achieve the same effect (or an even better one) using much simpler tricks. One thing that caused me pain was that I had to have around 10 lines of code in each and every Activity in my app. ![]() I did that and I had a pretty good looking result. ![]() I thought for some time and figured that I’d be able to have a nice material-like action bar using a custom view in my action bar. Of course, the first thing to come my way was supporting older Android versions. However, after some point I couldn’t resist the urge and started redesigning my app following the new design guidelines. At first, I thought I’d wait for some solid material/reference before trying things. When I saw Material Design in the Google I/O keynote, I was very excited. For info on how to use the AppCompat library, you can check out this blog post on the android developers blog. This method was nothing more than a hack to begin with. At the moment, it’s a lot wiser to make use of the support libraries. This method of achieving a material style action bar was found before Google released the latest support libraries. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |