Edwin Evans
Edwin Evans

Reputation: 2836

Compatibility implications of using native Fragment versus app support version?

I can either use the app support library version of Fragments or the native one. If I use the native one what percent of devices will I not be able to support? I'm confused by the graph at https://developer.android.com/about/dashboards/index.html since my understanding is that native Fragments came in for Honeycomb but that isn't shown in the chart.

Upvotes: 0

Views: 576

Answers (1)

ianhanniballake
ianhanniballake

Reputation: 199805

Honeycomb is Android 3.0 therefore anything at or above 3.0 (such as Ice Cream Sandwich, Jelly Bean, KitKat, etc) all have support for native fragments. Note that nested fragments (i.e., fragments within fragments) were only added in Android 4.2 but are included in the support library version of Fragments.

As there are a lot of Android Support Library unique features that you should be using, there's no penalty for using the support library version of Fragments and some UI libraries, such as AppCompat (which simplifies support for the Action Bar and theming across all versions of Android), assume you are using the support library versions.

Upvotes: 1

Related Questions