본문 바로가기

Development/Android

[Android] Show an icon in Actionbar.

It's possible to show an icon in Actionbar with the following code.

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