I am implementing the FragmentStatePagerAdapter
and I'd like to have a draggable titles. The title
of each fragment can be interactive just like the pager effect. The user can drag or browse title
of all fragments without affecting the current view by the time the user stops or select a specific title
then that's the time the view gets updated. I am not sure how to do this, is this possible. Please share your insights and opinions about this. Thanks
@Override
public CharSequence getPageTitle(int position) {
switch (position) {
case 0:
return "Title";
case 1:
return "Title";
}
}
根据我的研究, PagerTitleStrip
不是交互式的,我尝试使用PagerTabStrip
但不支持titles
拖动或浏览,如果您要实现所需的类似功能,强烈建议使用actionsherlock。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.