About working with Fragment in Android 2.1

My first question I would like to ask is that Fragment is only supported by android 3.0 ? If I am developing an Android 2.1 application, can I use Snippet ?

My second question is: I implement this simple function, Fragment is a good choice, but I am developing Android 2.1 , if the answer to my first question is negative, what can be a workaround for implementing the function that I need?

+4
source share
2 answers

Yes, you can use Snippet with Android 1.6 and later. See this Android blog post: Snippets for Everyone

+6
source

You need to use the fragment compatibility library that works with Android 1.6 and higher:

http://developer.android.com/sdk/compatibility-library.html

+1
source

All Articles