Quantcast
Channel: Code Theory
Viewing all articles
Browse latest Browse all 233

Quick Tip: Android Add Image to PagerTabStrip or PagerTitleStrip

$
0
0

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.


Viewing all articles
Browse latest Browse all 233

Trending Articles