If you are using the design support library TabLayout, you can simply call:
tabLayout.getTabAt(i).setIcon();
More Related Contents:
- How to implement a ViewPager with different Fragments / Layouts
- What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter?
- Remove Fragment Page from ViewPager in Android
- How to get existing fragments when using FragmentPagerAdapter
- IllegalStateException: The application’s PagerAdapter changed the adapter’s content without calling PagerAdapter#notifyDataSetChanged
- refresh fragment UI from fragmentActivity
- Replacing ViewPager with Fragment – Then Navigating Back
- Android – Is Navigation Drawer from right hand side possible?
- Draw text in OpenGL ES
- How to fix: android.app.RemoteServiceException: Bad notification posted from package *: Couldn’t create icon: StatusBarIcon
- Detect the status of two SIM cards in a dual-SIM Android phone
- How can make my ViewPager load only one page at a time ie setOffscreenPageLimit(0);
- How can I store an integer array in SharedPreferences?
- GridView rows overlapping: how to make row height fit the tallest item?
- Android KitKat 4.4 Hangouts cannot handle Sending SMS intent
- How do you make layouts for several Android screen sizes?
- How to draw dashed polyline with android google map sdk v2?
- No cached version of gradle
- Retaining position in ListView after calling notifyDataSetChanged
- query the google play store for the version of an app?
- ActivityNotFoundException?
- Switch between Fragments with onNavigationItemSelected in new Navigation Drawer Activity template (Android Studio 1.4 onward)
- Preventing HttpClient 4 from following redirect
- Android WebView -> Display WebArchive
- How to check if camera is opened by any application
- How to connect the device to Eclipse?
- Button Listener for button in fragment in android
- How to include suggestions in Android Keyboard
- How to obtain MANAGE_EXTERNAL_STORAGE permission
- How to detect if device support notch display?