getSupportActionBar().setDisplayShowHomeEnabled(true);
along with
getSupportActionBar().setIcon(R.drawable.ic_launcher);
More Related Contents:
- Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
- Upgraded to AppCompat v22.1.0 and now getting IllegalArgumentException: AppCompat does not support the current theme features
- Android transparent status bar and actionbar
- AppCompat v7 r21 returning error in values.xml?
- Actionbar not shown with AppCompat
- Embedding ads within Recyclerview
- Why does Eclipse automatically add appcompat v7 library support whenever I create a new project?
- Android Lollipop, AppCompat ActionBar custom view doesn’t take up whole screen width
- Use Tab with new ToolBar (AppCompat v7-21)
- Toolbar and Contextual ActionBar with AppCompat-v7
- Toolbar navigation icon never set
- Error in styles_base.xml file – android app – No resource found that matches the given name ‘android:Widget.Material.ActionButton’
- InflateException with FloatingActionButton from Official Design Library
- How to fix: “You need to use a Theme.AppCompat theme (or descendant) with this activity”
- How to use and style new AlertDialog from appCompat 22.1 and above
- How to implement the Material-design Elevation for Pre-lollipop
- How to change Toolbar Navigation and Overflow Menu icons (appcompat v7)?
- Unable to write jarlist cache file while creating android project
- Don’t collapse Toolbar when RecyclerView fits the screen
- Android 5.0: how to change recent apps title color?
- play-services-ads conflicts with appcompat
- Cannot resolve symbol ‘Theme’ in styles.xml (Android Studio)
- Set ActionBar Tabs at bottom in ActionBarActivity
- java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/BuildCompat
- Is any difference between a MaterialButton and a simple Button?
- How animate Burger to Arrow with Appcompat v7 21, Toolbar and DrawerLayout
- Android Material Design Datepicker with AppCompat
- NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable
- Getting exception : java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV14
- gradle, Could not expand ZIP appcompat-v7:19.0.1