From 7bbcb704e7d0be402e0644b6b36438ac26f64cac Mon Sep 17 00:00:00 2001 From: Trinea Date: Sun, 27 Apr 2014 15:54:48 +0800 Subject: [PATCH] Add tips for autoScrollViewPagerDemo --- AndroidManifest.xml | 291 +++++++++--------- res/values-zh-rCN/strings.xml | 2 + res/values-zh-rTW/strings.xml | 2 + res/values/strings.xml | 2 + .../android/demo/ImagePagerFragment.java | 2 +- .../trinea/android/demo/utils/AppUtils.java | 8 + 6 files changed, 160 insertions(+), 147 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 3792706..c59f23a 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,147 +1,146 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index b52526d..50ece24 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -64,5 +64,7 @@ ImageCache使用 ImageSDCardCache使用 HttpCache使用 + 自动滚动ViewPager嵌套使用 + 自动滚动ViewPager使用 Trinea diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 5ee49bb..fa234ec 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -64,5 +64,7 @@ ImageCache使用 ImageSDCardCache使用 HttpCache使用 + 自動滾動ViewPager嵌套使用 + 自動滾動ViewPager使用 Trinea diff --git a/res/values/strings.xml b/res/values/strings.xml index be15b1a..9dea0de 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -85,5 +85,7 @@ ImageCache Usage ImageSDCardCache Usage HttpCache Usage + Autoscroll ViewPager in ViewPager Usage + Autoscroll ViewPager Usage Trinea diff --git a/src/cn/trinea/android/demo/ImagePagerFragment.java b/src/cn/trinea/android/demo/ImagePagerFragment.java index 3f1d861..4e09aec 100644 --- a/src/cn/trinea/android/demo/ImagePagerFragment.java +++ b/src/cn/trinea/android/demo/ImagePagerFragment.java @@ -81,7 +81,7 @@ public void onStop() { /** * ScrollControlReceiver * - * @author Trinea 2014年4月26日 + * @author Trinea 2014-4-26 */ private class ScrollControlReceiver extends BroadcastReceiver { diff --git a/src/cn/trinea/android/demo/utils/AppUtils.java b/src/cn/trinea/android/demo/utils/AppUtils.java index d37e259..05bf736 100644 --- a/src/cn/trinea/android/demo/utils/AppUtils.java +++ b/src/cn/trinea/android/demo/utils/AppUtils.java @@ -10,6 +10,8 @@ import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; +import cn.trinea.android.demo.AutoScrollViewPagerDemo; +import cn.trinea.android.demo.AutoScrollViewPagerInnerDemo; import cn.trinea.android.demo.BorderScrollViewDemo; import cn.trinea.android.demo.BroadcastReceiverDemo; import cn.trinea.android.demo.DownloadManagerDemo; @@ -125,6 +127,12 @@ private static String[] getText(Activity activity) { } else if (sourClass == HttpCacheDemo.class) { url = "http://www.trinea.cn/android/android-http-cache/"; contentSrcId = R.string.desc_http_cache; + } else if (sourClass == AutoScrollViewPagerInnerDemo.class) { + url = "http://www.trinea.cn/android/auto-scroll-view-pager/"; + contentSrcId = R.string.desc_auto_scroll_view_pager_inner; + } else if (sourClass == AutoScrollViewPagerDemo.class) { + url = "http://www.trinea.cn/android/auto-scroll-view-pager/"; + contentSrcId = R.string.desc_auto_scroll_view_pager; } else { prefixSrcId = R.string.profile; url = "http://www.trinea.cn";