If you’ve ever wanted to place images instead of text in the PagerTabStrip or PagerTitleStrip or even a combination of text and image, then that is surely possible. Here’s how your getPageTitle() method in the pager adapter implementation should look like: This method will prepend the text (like ” Page 1″) with res/drawable/ic_launcher.png in the […]
The post Quick Tip: Android Add Image to PagerTabStrip or PagerTitleStrip appeared first on Code Theory.