ViewPager  里面放Fragment

Android ViewPager FragmentPagerAdapterAndroid ViewPager FragmentPagerAdapter

 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 2     xmlns:tools="http://schemas.android.com/tools"
 3     android:id="@+id/activity_main"
 4     android:layout_width="match_parent"
 5     android:layout_height="match_parent"
 6     tools:context="com.example.lesson10_viewpager_fragmentpageradapter.MainActivity">
 7 
 8 
 9     <android.support.v4.view.ViewPager
10         android:id="@+id/vp"
11         android:layout_width="match_parent"
12         android:layout_height="wrap_content">
13 
14     </android.support.v4.view.ViewPager>
15 
16 
17 </RelativeLayout>
activity_main.xml

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-02
  • 2021-09-17
  • 2021-09-28
  • 2021-07-18
  • 2021-11-22
  • 2021-10-03
  • 2021-06-20
相关资源
相似解决方案