I'm building a basic app for Android (and am new to anything but iOS), and I'm only targeting APIs 15-22, so I've been using the main library in comparison to the support library for things like fragments (that is, importing android.app.Fragment
as opposed to android.support.v4.app.Fragment
). However, it seems ViewPager
requires the fragments to be from the support library, so either I need to edit all my code to use the support library or I can't use ViewPager
. I can't help but feel that think this reflects really poorly on Android as an OS. Is there any way around this? Is there any harm in using the support library for newer APIs (15-22)?
Thank you.