本文整理汇总了Java中com.gigamole.sample.adapters.HorizontalPagerAdapter类的典型用法代码示例。如果您正苦于以下问题:Java HorizontalPagerAdapter类的具体用法?Java HorizontalPagerAdapter怎么用?Java HorizontalPagerAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HorizontalPagerAdapter类属于com.gigamole.sample.adapters包,在下文中一共展示了HorizontalPagerAdapter类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onViewCreated
import com.gigamole.sample.adapters.HorizontalPagerAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final HorizontalInfiniteCycleViewPager horizontalInfiniteCycleViewPager =
(HorizontalInfiniteCycleViewPager) view.findViewById(R.id.hicvp);
horizontalInfiniteCycleViewPager.setAdapter(new HorizontalPagerAdapter(getContext(), true));
//
// horizontalInfiniteCycleViewPager.setScrollDuration(500);
// horizontalInfiniteCycleViewPager.setPageDuration(1000);
// horizontalInfiniteCycleViewPager.setInterpolator(null);
// horizontalInfiniteCycleViewPager.setMediumScaled(true);
// horizontalInfiniteCycleViewPager.setMaxPageScale(1.0F);
// horizontalInfiniteCycleViewPager.setMinPageScale(0.7F);
// horizontalInfiniteCycleViewPager.setCenterPageScaleOffset(0.0F);
// horizontalInfiniteCycleViewPager.setMinPageScaleOffset(0.0F);
}
示例2: onViewCreated
import com.gigamole.sample.adapters.HorizontalPagerAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final HorizontalInfiniteCycleViewPager horizontalInfiniteCycleViewPager =
(HorizontalInfiniteCycleViewPager) view.findViewById(R.id.hicvp);
horizontalInfiniteCycleViewPager.setAdapter(new HorizontalPagerAdapter(getContext(), false));
// horizontalInfiniteCycleViewPager.setScrollDuration(400);
// horizontalInfiniteCycleViewPager.setPageDuration(1000);
// horizontalInfiniteCycleViewPager.setInterpolator(
// AnimationUtils.loadInterpolator(getContext(), android.R.anim.overshoot_interpolator)
// );
// horizontalInfiniteCycleViewPager.setMediumScaled(false);
// horizontalInfiniteCycleViewPager.setMaxPageScale(0.8F);
// horizontalInfiniteCycleViewPager.setMinPageScale(0.5F);
// horizontalInfiniteCycleViewPager.setCenterPageScaleOffset(30.0F);
// horizontalInfiniteCycleViewPager.setMinPageScaleOffset(5.0F);
// horizontalInfiniteCycleViewPager.setOnInfiniteCyclePageTransformListener();
// horizontalInfiniteCycleViewPager.setCurrentItem(
// horizontalInfiniteCycleViewPager.getRealItem() + 1
// );
}
示例3: onViewCreated
import com.gigamole.sample.adapters.HorizontalPagerAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final HorizontalInfiniteCycleViewPager horizontalInfiniteCycleViewPager =
(HorizontalInfiniteCycleViewPager) view.findViewById(R.id.hicvp);
horizontalInfiniteCycleViewPager.setAdapter(new HorizontalPagerAdapter(getContext(), true));
//
// horizontalInfiniteCycleViewPager.setScrollDuration(500);
// horizontalInfiniteCycleViewPager.setInterpolator(null);
// horizontalInfiniteCycleViewPager.setMediumScaled(true);
// horizontalInfiniteCycleViewPager.setMaxPageScale(1.0F);
// horizontalInfiniteCycleViewPager.setMinPageScale(0.7F);
// horizontalInfiniteCycleViewPager.setCenterPageScaleOffset(0.0F);
// horizontalInfiniteCycleViewPager.setMinPageScaleOffset(0.0F);
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:17,代码来源:TwoWayPagerFragment.java
示例4: onViewCreated
import com.gigamole.sample.adapters.HorizontalPagerAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final HorizontalInfiniteCycleViewPager horizontalInfiniteCycleViewPager =
(HorizontalInfiniteCycleViewPager) view.findViewById(R.id.hicvp);
horizontalInfiniteCycleViewPager.setAdapter(new HorizontalPagerAdapter(getContext(), false));
// horizontalInfiniteCycleViewPager.setScrollDuration(400);
// horizontalInfiniteCycleViewPager.setInterpolator(
// AnimationUtils.loadInterpolator(getContext(), android.R.anim.overshoot_interpolator)
// );
// horizontalInfiniteCycleViewPager.setMediumScaled(false);
// horizontalInfiniteCycleViewPager.setMaxPageScale(0.8F);
// horizontalInfiniteCycleViewPager.setMinPageScale(0.5F);
// horizontalInfiniteCycleViewPager.setCenterPageScaleOffset(30.0F);
// horizontalInfiniteCycleViewPager.setMinPageScaleOffset(5.0F);
// horizontalInfiniteCycleViewPager.setOnInfiniteCyclePageTransformListener();
// horizontalInfiniteCycleViewPager.setCurrentItem(
// horizontalInfiniteCycleViewPager.getRealItem() + 1
// );
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:24,代码来源:HorizontalPagerFragment.java