android java display icon in action bar

Solutions on MaxInterview for android java display icon in action bar by the best coders in the world

showing results for - "android java display icon in action bar"
Jesús
19 Jan 2019
1getSupportActionBar().setDisplayShowHomeEnabled(true);
2getSupportActionBar().setLogo(R.mipmap.ic_launcher);
3getSupportActionBar().setDisplayUseLogoEnabled(true);
Greta
15 Jun 2019
1ActionBar actionBar = getActionBar();
2actionBar.setSubtitle("mytest");
3actionBar.setTitle("vogella.com");