How to do tabs with icons

I’m trying to do an activity with tabs and pagerview I found this code in a blog but it does not come like making the tabs have icons instead of text … I put the code: ViewPagerAdapter.java class …