From 3c5a1c812432babb68f44513d9988ab8ae992f42 Mon Sep 17 00:00:00 2001
From: Alan Viverette
A replacement for TabActivity can also be implemented by directly using - * TabHost. You will need to define a layout that correctly uses a TabHost - * with a TabWidget as well as an area in which to display your tab content. - * A typical example would be:
- * - * {@sample development/samples/Support4Demos/res/layout/fragment_tabs.xml complete} - * - *The implementation needs to take over responsibility for switching - * the shown content when the user switches between tabs. - * - * {@sample development/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.java - * complete} - * - *
Also see the - * Fragment Tabs Pager sample for an example of using the support library's ViewPager to - * allow the user to swipe the content to switch between tabs.
- * * @deprecated New applications should use Fragments instead of this class; * to continue to run on older devices, you can use the v4 support library * which provides a version of the Fragment API that is compatible down to diff --git a/core/java/com/android/internal/widget/ViewPager.java b/core/java/com/android/internal/widget/ViewPager.java index 277fafd4adf7..d5b6def97426 100644 --- a/core/java/com/android/internal/widget/ViewPager.java +++ b/core/java/com/android/internal/widget/ViewPager.java @@ -55,34 +55,7 @@ import java.util.Collections; import java.util.Comparator; /** - * Layout manager that allows the user to flip left and right - * through pages of data. You supply an implementation of a - * {@link android.support.v4.view.PagerAdapter} to generate the pages that the view shows. - * - *Note this class is currently under early design and - * development. The API will likely change in later updates of - * the compatibility library, requiring changes to the source code - * of apps when they are compiled against the newer version.
- * - *ViewPager is most often used in conjunction with {@link android.app.Fragment}, - * which is a convenient way to supply and manage the lifecycle of each page. - * There are standard adapters implemented for using fragments with the ViewPager, - * which cover the most common use cases. These are - * {@link android.support.v4.app.FragmentPagerAdapter} and - * {@link android.support.v4.app.FragmentStatePagerAdapter}; each of these - * classes have simple code showing how to build a full user interface - * with them. - * - *
For more information about how to use ViewPager, read Creating Swipe Views with - * Tabs.
- * - *Below is a more complicated example of ViewPager, using it in conjunction - * with {@link android.app.ActionBar} tabs. You can find other examples of using - * ViewPager in the API 4+ Support Demos and API 13+ Support Demos sample code. - * - * {@sample development/samples/Support13Demos/src/com/example/android/supportv13/app/ActionBarTabsPager.java - * complete} + * Framework copy of the support-v4 ViewPager class. */ public class ViewPager extends ViewGroup { private static final String TAG = "ViewPager"; -- cgit v1.2.3-59-g8ed1b