回答

0

挖了45小時 它只是一條線我是錯過了..最後經過

indicator.setOrientation(LinearLayout.VERTICAL); 

以下是我的活動類

final VerticalViewPager viewpager = (VerticalViewPager) findViewById(R.id.viewpager_default); 
     CircleIndicator indicator = (CircleIndicator) findViewById(R.id.indicator_default); 
     viewpager.setAdapter(new SamplePagerAdapter(ViewProfileActivity.this,listImgUrls)); 
     viewpager.setOnTouchListener(new View.OnTouchListener() { 

      @Override 
      public boolean onTouch(View v, MotionEvent event) { 
       viewpager.getParent().requestDisallowInterceptTouchEvent(true); 
       return false; 
      } 
     }); 
     indicator.setOrientation(LinearLayout.VERTICAL); 
     indicator.setViewPager(viewpager);