本文整理匯總了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);
}