需要使用 DirectionalViewPager - 用于垂直和水平 ViewPager 实现的库的人的帮助。正如DirectionalViewPager中所述,我做了所有事情。但是在创建示例 android 项目后得到
10-02 13:04:03.439: E/AndroidRuntime(1526): FATAL EXCEPTION: main
10-02 13:04:03.439: E/AndroidRuntime(1526): java.lang.NoClassDefFoundError: com.directionalviewpager.DirectionalViewPager$DataSetObserver
10-02 13:04:03.439: E/AndroidRuntime(1526): at com.directionalviewpager.DirectionalViewPager.setAdapter(DirectionalViewPager.java:164)
10-02 13:04:03.439: E/AndroidRuntime(1526): at com.example.verticalview.SampleActivity.onCreate(SampleActivity.java:17)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.os.Handler.dispatchMessage(Handler.java:99)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.os.Looper.loop(Looper.java:123)
10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.main(ActivityThread.java:3687)
10-02 13:04:03.439: E/AndroidRuntime(1526): at java.lang.reflect.Method.invokeNative(Native Method)
10-02 13:04:03.439: E/AndroidRuntime(1526): at java.lang.reflect.Method.invoke(Method.java:507)
10-02 13:04:03.439: E/AndroidRuntime(1526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
10-02 13:04:03.439: E/AndroidRuntime(1526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
10-02 13:04:03.439: E/AndroidRuntime(1526): at dalvik.system.NativeStart.main(Native Method)
谁有平等的业务,请指教。