本文整理汇总了Java中com.gigamole.sample.R类的典型用法代码示例。如果您正苦于以下问题:Java R类的具体用法?Java R怎么用?Java R使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
R类属于com.gigamole.sample包,在下文中一共展示了R类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: instantiateItem
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public Object instantiateItem(final ViewGroup container, final int position) {
final View view;
if (mIsTwoWay) {
view = mLayoutInflater.inflate(R.layout.two_way_item, container, false);
final VerticalInfiniteCycleViewPager verticalInfiniteCycleViewPager =
(VerticalInfiniteCycleViewPager) view.findViewById(R.id.vicvp);
verticalInfiniteCycleViewPager.setAdapter(
new VerticalPagerAdapter(mContext)
);
verticalInfiniteCycleViewPager.setCurrentItem(position);
} else {
view = mLayoutInflater.inflate(R.layout.item, container, false);
setupItem(view, LIBRARIES[position]);
}
container.addView(view);
return view;
}
示例2: onViewCreated
import com.gigamole.sample.R; //导入依赖的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);
}
示例3: onViewCreated
import com.gigamole.sample.R; //导入依赖的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
// );
}
示例4: instantiateItem
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public Object instantiateItem(final ViewGroup container, final int position) {
final View view;
if (mIsTwoWay) {
view = mLayoutInflater.inflate(R.layout.two_way_item, container, false);
final VerticalInfiniteCycleViewPager verticalInfiniteCycleViewPager =
(VerticalInfiniteCycleViewPager) view.findViewById(R.id.vicvp);
verticalInfiniteCycleViewPager.setAdapter(
new VerticalPagerAdapter(mContext, TWO_WAY_LIBRARIES[position])
);
verticalInfiniteCycleViewPager.setCurrentItem(0);
} else {
view = mLayoutInflater.inflate(R.layout.item, container, false);
setupImage(mContext, (ImageView) view.findViewById(R.id.image), LIBRARIES[position]);
}
container.addView(view);
return view;
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:21,代码来源:HorizontalPagerAdapter.java
示例5: onViewCreated
import com.gigamole.sample.R; //导入依赖的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
示例6: onViewCreated
import com.gigamole.sample.R; //导入依赖的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
示例7: setupItem
import com.gigamole.sample.R; //导入依赖的package包/类
public static void setupItem(final View view, final LibraryObject libraryObject) {
final TextView txt = (TextView) view.findViewById(R.id.txt_item);
txt.setText(libraryObject.getTitle());
final ImageView img = (ImageView) view.findViewById(R.id.img_item);
img.setImageResource(libraryObject.getRes());
}
示例8: instantiateItem
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public Object instantiateItem(final ViewGroup container, final int position) {
final View view = mLayoutInflater.inflate(R.layout.item, container, false);
setupItem(view, TWO_WAY_LIBRARIES[position]);
container.addView(view);
return view;
}
示例9: onCreate
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final ViewPager viewPager = (ViewPager) findViewById(R.id.vp_main);
viewPager.setAdapter(new MainPagerAdapter(getSupportFragmentManager()));
viewPager.setOffscreenPageLimit(2);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts);
navigationTabStrip.setTitles("HOW WE WORK", "WE WORK WITH");
navigationTabStrip.setViewPager(viewPager);
}
示例10: onViewCreated
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final VerticalInfiniteCycleViewPager verticalInfiniteCycleViewPager =
(VerticalInfiniteCycleViewPager) view.findViewById(R.id.vicvp);
verticalInfiniteCycleViewPager.setAdapter(new VerticalPagerAdapter(getContext()));
verticalInfiniteCycleViewPager.setScrollDuration(1000);
verticalInfiniteCycleViewPager.startAutoScroll(true);
}
示例11: instantiateItem
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public Object instantiateItem(final ViewGroup container, final int position) {
final View view = mLayoutInflater.inflate(R.layout.item, container, false);
if (mLibraryObject == null)
setupImage(mContext, (ImageView) view.findViewById(R.id.image), LIBRARIES[position]);
else
setupImage(mContext, (ImageView) view.findViewById(R.id.image), mLibraryObject, position);
container.addView(view);
return view;
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:13,代码来源:VerticalPagerAdapter.java
示例12: onCreate
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final ViewPager viewPager = (ViewPager) findViewById(R.id.vp_main);
viewPager.setAdapter(new MainPagerAdapter(getSupportFragmentManager()));
viewPager.setOffscreenPageLimit(2);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts);
navigationTabStrip.setTitles("HORIZONTAL", "VERTICAL", "TWO-WAY");
navigationTabStrip.setViewPager(viewPager);
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:14,代码来源:MainActivity.java
示例13: onViewCreated
import com.gigamole.sample.R; //导入依赖的package包/类
@Override
public void onViewCreated(final View view, @Nullable final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final VerticalInfiniteCycleViewPager verticalInfiniteCycleViewPager =
(VerticalInfiniteCycleViewPager) view.findViewById(R.id.vicvp);
verticalInfiniteCycleViewPager.setAdapter(new VerticalPagerAdapter(getContext(), null));
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:9,代码来源:VerticalPagerFragment.java
示例14: onCreateView
import com.gigamole.sample.R; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_two_way, container, false);
}
示例15: onCreateView
import com.gigamole.sample.R; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_horizontal, container, false);
}