2 u013209983 u013209983 于 2017.01.06 18:33 提问

android 中的api翻译问题

This version of the pager is best for use when there are a handful of typically more static fragments to be paged through, such as a set of tabs. The fragment of each page the user visits will be kept in memory, though its view hierarchy may be destroyed when not visible. This can result in using a significant amount of memory since fragment instances can hold on to an arbitrary amount of state. For larger sets of pages, consider FragmentStatePagerAdapter.

中的pager在这里是什么意思啊

连接地址:https://developer.android.google.cn/reference/android/support/v13/app/FragmentPagerAdapter.html

1个回答

zjh_1993
zjh_1993   2017.01.06 21:54
已采纳

你知道ViewPager么,ViewPager的适配器就是PagerAdapter,FragmentPagerAdapter就是PagerAdapter的子类。一个Pager就是一页,拿微信举个例子,微信、通讯录、发现、我这四个页面你就可以看成4个Pager

Csdn user default icon
上传中...
上传图片
插入图片