Page viewer sous android

670 views
473 views

Published on

Comment utiliser le pageViewer avec la technique du swipe

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
670
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Page viewer sous android

  1. 1. /PREEMPTIF @ElZakaria http://www.javailable.com
  2. 2. Extends FragmentActivity
  3. 3. import android.support.v4.app.Fragment;
  4. 4. Layout_fragment1.xml Layout_fragment2.xml Layout_fragment3.xml
  5. 5. <?xml version="1.0" encoding="utf-8"?> <android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" /> Utilisé dans MyActivity.java
  6. 6. • Selon la doc Android : - Doc android -
  7. 7. On lui passe le fragmentmanager de l’activité (extend FragmentActivity)
  8. 8. Voir détails méthodes après
  9. 9. Inner Class

×