I'm beginning to dive into Android, having been an iOS developer for a while, and I find the obsession with backwards compatibility a bit confusing. In particular, I can't seem to understand why the official docs mention compat/support classes instead of proper ones -- for example, android.support.v4.view.ViewPager
.
I understand backwards compatibility, but I have always seen it as a kind of thing you do if you have no other choice. I also well understand that Android and iOS have wildly different approaches to backwards compatibility, and for good reasons.
So, my question is: are there classes that only exist as compat/support? And what if I didn't care for bw-compat and wanted to do stuff as if Lollipop (or Marshmallow, or Nougat) was the first version of Android ever? In particular, I'm running into troubles with the PreferenceFragment thing that doesn't properly exist in support.