diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-06 14:03:46 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-06-06 15:01:45 -0700 |
commit | 7ffb7d4b2face7d2ce5cee82c92ec36fd0ba2932 (patch) | |
tree | 26b0c27425d48d9508599866766b6f7bdde58829 /samples/Support13Demos/src/com/example | |
parent | 47f569e460adaef04b75174706b7c95471567ca8 (diff) | |
download | android_development-7ffb7d4b2face7d2ce5cee82c92ec36fd0ba2932.tar.gz android_development-7ffb7d4b2face7d2ce5cee82c92ec36fd0ba2932.tar.bz2 android_development-7ffb7d4b2face7d2ce5cee82c92ec36fd0ba2932.zip |
Update pager demos to match new v4 ViewPager API.
Change-Id: I3b0f3382d56b477868b5a5fbf5af22fa83c3e06a
Diffstat (limited to 'samples/Support13Demos/src/com/example')
3 files changed, 10 insertions, 5 deletions
diff --git a/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentPagerSupport.java b/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentPagerSupport.java index fcb41cd9c..ae2f4816c 100644 --- a/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentPagerSupport.java +++ b/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentPagerSupport.java @@ -20,7 +20,7 @@ import com.example.android.supportv13.Cheeses; import com.example.android.supportv13.R; import android.support.v13.app.FragmentPagerAdapter; -import android.support.v13.view.ViewPager; +import android.support.v4.view.ViewPager; import android.os.Bundle; import android.app.Activity; diff --git a/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentStatePagerSupport.java b/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentStatePagerSupport.java index e19bdf640..4e6ebda60 100644 --- a/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentStatePagerSupport.java +++ b/samples/Support13Demos/src/com/example/android/supportv13/app/FragmentStatePagerSupport.java @@ -20,7 +20,7 @@ import com.example.android.supportv13.Cheeses; import com.example.android.supportv13.R; import android.support.v13.app.FragmentStatePagerAdapter; -import android.support.v13.view.ViewPager; +import android.support.v4.view.ViewPager; import android.os.Bundle; import android.app.Activity; diff --git a/samples/Support13Demos/src/com/example/android/supportv13/app/_index.html b/samples/Support13Demos/src/com/example/android/supportv13/app/_index.html index b00985e84..47673dad9 100644 --- a/samples/Support13Demos/src/com/example/android/supportv13/app/_index.html +++ b/samples/Support13Demos/src/com/example/android/supportv13/app/_index.html @@ -9,7 +9,12 @@ package features of the static support library fir API 13 or later. <h3 id="Fragment">Fragment</h3> <dl> <dt><a href="FragmentPagerSupport.html">Fragment Pager Support</a></dt> - <dd>A support class for using the framework Fragment APIs to build - a user interface where the user can fling left or right to switch - between fragments.</dd> + <dd>Demonstrates the use of the v4 support class ViewPager with a + FragmentPagerAdapter to build a user interface where the user can fling + left or right to switch between fragments.</dd> + <dt><a href="FragmentStatePagerSupport.html">Fragment State Pager Support</a></dt> + <dd>Demonstrates the use of the v4 support class ViewPager with a + FragmentStatePagerAdapter to build a user interface where the user can fling + left or right to switch between fragments. This versions of the adapter + doesn't keep around the fragment instances that ViewPager has destroyed.</dd> </dl> |