示例#1
0
文件: Album.java 项目: uxrp/Cross
 public void onPageSelected(int position) {
   Data data = albumResult.getAlbum().getData();
   Image image = data.getImages().get(position);
   int total = data.getTotal();
   String order = String.format(getResources().getString(R.string.order), image.getIndex(), total);
   mOrderView.setText(order);
   mDescrView.setText(image.getDescr());
 }
示例#2
0
文件: Album.java 项目: uxrp/Cross
 public AlbumPagerAdapter(Context context, AlbumResult albumResult) {
   this.images = albumResult.getAlbum().getData().getImages();
   this.mContext = context;
   imageLoader = Utils.getImageLoader(context);
 }