Menu
  • HOME
  • TAGS

actionbar up button, extend click area when no title or icon

android,android-actionbar,up-button

You can put an image where the app icon would be. Just make a transparent image to the width and height for each drawable size you need and put it in the drawable folder, call the image logo (@drawable/logo). You then need to tell the activity to use the logo,...

UpButton doesn't work whatever I try to do

android,android-fragments,up-button

Answer is simple as I expected but I spend more than a day to get this clear. I implemented drawer step by step discovering documentation for every method. Ran app to notice any changes. I figured out that when setDisplayHomeAsUpEnabled(true) it's only changes drawer hamburger icon on back arrow icon...

Android - Back button doesn't call onResume()

android,back-button,android-theme,onresume,up-button

onResume() does not take a parameter. You should also annotate with @Override to prevent such mistakes. Basically you have created a new method onResume() which will not be called as part of the Activity lifecycle....

How to customize the “up” button when the searchView is being expanded?

android,android-5.0-lollipop,searchview,up-button

It seems like a known issue: https://code.google.com/p/android/issues/detail?id=78346 . workaround is here: https://code.google.com/p/android/issues/detail?id=78346#c5 , meaning: values-21/themes.xml: <style name="MyTheme" parent="Theme.AppCompat"> <item name="homeAsUpIndicator">@drawable/abc_ic_ab_back_mtrl_am_alpha</item> </style> That's it. Hope it gets fixed later. In order to customize it, I assume I can use it, and also choose the color using "colorControlNormal"...