Ashutosh Dubey
Ashutosh Dubey

Reputation: 385

How to make non-clickable App Icon on Action Bar like YouTube App in android

I want to add non clickable App Icon on Action Bar like YouTube app have app icon on Top-Left of screen.Currently App Icon on Action behave like button.

Please see to know about app icon:

http://developer.android.com/design/patterns/actionbar.html

Upvotes: 2

Views: 805

Answers (1)

Dylan Vander Berg
Dylan Vander Berg

Reputation: 1889

I think you are looking for getSupportActionBar().setHomeButtonEnabled(false); for appCompat. If you aren't using appCompat, then just getActionBar().setHomeButtonEnabled(false) assuming your activity is extending ActionBarActivity.

Upvotes: 2

Related Questions