Android - How to show App logo in action bar

ActionBar actionBar = getSupportActionBar();
 // Set tab navigation mode.
 actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

 // Set below attributes to add logo in ActionBar.
 actionBar.setDisplayShowHomeEnabled(true);
 actionBar.setDisplayUseLogoEnabled(true);
 actionBar.setLogo(R.drawable.icon_tech_32);

Comments

Popular posts from this blog

App Store Connect ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment"

RGPV CSE 8th Semester Soft computing Notes and Lectures

Facts about bb ki vines bhuvan bam