本文整理汇总了Java中com.nostra13.universalimageloader.sample.Constants类的典型用法代码示例。如果您正苦于以下问题:Java Constants类的具体用法?Java Constants怎么用?Java Constants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Constants类属于com.nostra13.universalimageloader.sample包,在下文中一共展示了Constants类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fr_image_pager, container, false);
ViewPager pager = (ViewPager) rootView.findViewById(R.id.pager);
pager.setAdapter(new ImageAdapter(getActivity()));
pager.setCurrentItem(getArguments().getInt(Constants.Extra.IMAGE_POSITION, 0));
return rootView;
}
示例2: onCreateView
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fr_image_pager, container, false);
ViewPager pager = (ViewPager) rootView.findViewById(R.id.pager);
pager.setAdapter(new ImageAdapter());
pager.setCurrentItem(getArguments().getInt(Constants.Extra.IMAGE_POSITION, 0));
return rootView;
}
开发者ID:jact-hz,项目名称:https-github.com-nostra13-Android-Universal-Image-Loader,代码行数:9,代码来源:ImagePagerFragment.java
示例3: startImagePagerActivity
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
private void startImagePagerActivity(int position) {
Intent intent = new Intent(getActivity(), SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImagePagerFragment.INDEX);
intent.putExtra(Constants.Extra.IMAGE_POSITION, position);
startActivity(intent);
}
示例4: startImagePagerActivity
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
protected void startImagePagerActivity(int position) {
Intent intent = new Intent(getActivity(), SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImagePagerFragment.INDEX);
intent.putExtra(Constants.Extra.IMAGE_POSITION, position);
startActivity(intent);
}
示例5: onImageListClick
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
public void onImageListClick(View view) {
Intent intent = new Intent(this, SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImageListFragment.INDEX);
startActivity(intent);
}
示例6: onImageGridClick
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
public void onImageGridClick(View view) {
Intent intent = new Intent(this, SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImageGridFragment.INDEX);
startActivity(intent);
}
示例7: onImagePagerClick
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
public void onImagePagerClick(View view) {
Intent intent = new Intent(this, SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImagePagerFragment.INDEX);
startActivity(intent);
}
示例8: onImageGalleryClick
import com.nostra13.universalimageloader.sample.Constants; //导入依赖的package包/类
public void onImageGalleryClick(View view) {
Intent intent = new Intent(this, SimpleImageActivity.class);
intent.putExtra(Constants.Extra.FRAGMENT_INDEX, ImageGalleryFragment.INDEX);
startActivity(intent);
}