• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Révisionb0b4bcfc3148693f26736ca191171380577d04ce (tree)
l'heure2011-06-16 16:42:18
AuteurAdam Powell <adamp@goog...>
CommiterDianne Hackborn

Message de Log

DO NOT MERGE. Only impacts SDK. Integrate from master.

Update for ViewPager changes

Change-Id: Ib7024ae0ba2759a8477f267438b7b3a35ae51d23

Change Summary

Modification

--- a/samples/Support13Demos/src/com/example/android/supportv13/app/ActionBarTabsPager.java
+++ b/samples/Support13Demos/src/com/example/android/supportv13/app/ActionBarTabsPager.java
@@ -135,6 +135,10 @@ public class ActionBarTabsPager extends Activity {
135135 }
136136
137137 @Override
138+ public void onPageScrollStateChanged(int state) {
139+ }
140+
141+ @Override
138142 public void onTabSelected(Tab tab, FragmentTransaction ft) {
139143 Object tag = tab.getTag();
140144 for (int i=0; i<mTabs.size(); i++) {
--- a/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.java
+++ b/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.java
@@ -15,8 +15,6 @@
1515 */
1616 package com.example.android.supportv4.app;
1717
18-import java.util.ArrayList;
19-
2018 import com.example.android.supportv4.R;
2119
2220 import android.content.Context;
@@ -28,6 +26,8 @@ import android.support.v4.view.ViewPager;
2826 import android.view.View;
2927 import android.widget.TabHost;
3028
29+import java.util.ArrayList;
30+
3131 /**
3232 * Demonstrates combining a TabHost with a ViewPager to implement a tab UI
3333 * that switches between tabs and also allows the user to perform horizontal
@@ -161,5 +161,9 @@ public class FragmentTabsPager extends FragmentActivity {
161161 public void onPageSelected(int position) {
162162 mTabHost.setCurrentTab(position);
163163 }
164+
165+ @Override
166+ public void onPageScrollStateChanged(int state) {
167+ }
164168 }
165169 }