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"

Honor Play mobile Full specification price and reviews 2018

How to Make Signed Apk | Unable to upload new APK file to Android google Play store in Hindi