mskw
mskw

Reputation: 10308

Why is ViewPager in android only available in the V4 Support library

I must be confused, I thought the V4 support library is supposed to help older devices to have newer API's, how come there is not equivalent ViewPager class if I do not use the V4 Support library?

Upvotes: 0

Views: 262

Answers (1)

matiash
matiash

Reputation: 55340

The support library is not exclusively for compatibility with newer APIs. Some of the features (e.g. ViewPager, DrawerLayout, LocalBroadcastManager) are only present there.

As for "why", it's hard to say... I guess they wanted to make those widgets available independently of an Android release.

Upvotes: 1

Related Questions