how to make the application icon appear in the action bar? [closed]

0

by default it was to appear but not appearing I found this question App icon does not appear but the answer did not answer.

    
asked by anonymous 15.04.2017 / 18:21

1 answer

1

Use the setDisplayShowHomeEnabled() method to view the home button space:

getSupportActionBar().setDisplayShowHomeEnabled(true);

Then the setIcon() method to set the icon you want to view:

getSupportActionBar().setIcon(R.drawable.ic_launcher);

See this answer in gringo OS .

    
15.04.2017 / 19:40