那就是在 public static void main(String main){ }这个方法之前,就先写好要测试方法。 public class TestStudentAndCourse { public List courseToStudentList; public TestStudentAndCourse() { this.courseToStudentL ...
1.适配器中的Fragment。 FragmentPagerAdapter,写好了这种适配器,直接左右可以划。在 public Fragment getItem( int position)写自己想要的fragment然后与它匹配的是 .setOnPageChangeListener时间,手指滑动事件。 当然这个也是需要容器的,用 ArrayList 2.最简单的适配器 ArrayAdapter中 ...