本文整理汇总了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;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:ImagePagerFragment.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:7,代码来源:ImageGalleryFragment.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:7,代码来源:AbsListViewBaseFragment.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:HomeActivity.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:HomeActivity.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:HomeActivity.java
示例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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:HomeActivity.java
注:本文中的com.nostra13.universalimageloader.sample.Constants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论