Changes

Jump to: navigation, search

An Introduction to Android 6 Fragments

6 bytes removed, 20:56, 5 January 2016
What is a Fragment?
Fragments are stored in the form of XML layout files and may be added to an activity either by placing appropriate <fragment> elements in the activity’s layout file, or directly through code within the activity’s class implementation.
Before starting to use Fragments in an Android application, it is important to be aware that Fragments were not introduced to Android until version 3.0 of the Android SDK. An application that uses Fragments must, therefore, make use of the android-support-v4 Android Support Library in order to be compatible with older Android versions. The steps to achieve this will be covered in the next chapter, entitled [[Using Fragments in Android Studio - A Worked An Example - Android 6|Using Fragments in Android Studio - A Worked Example]].
== Creating a Fragment ==

Navigation menu