We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private class HeaderAdapter extends PagerAdapter {
@Override public Object instantiateItem(ViewGroup container, final int position) { ImageView imageView = new ImageView(AircraftInfoActivity.this.getApplicationContext()); imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); // imageView.setImageResource(images[position]); if (imagesUrl.size() > 0) { Glide.with(AircraftInfoActivity.this) .load(imagesUrl.get(position)) .placeholder(R.drawable.ic_loading) .error(R.drawable.ic_fail) .into(imageView); container.addView(imageView); imageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); return imageView; } else { return null; } } @Override public void destroyItem(ViewGroup container, int position, Object object) { container.removeView((View) object); } @Override public int getCount() { return imagesUrl.size(); } @Override public boolean isViewFromObject(View view, Object object) { return view == object; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
private class HeaderAdapter extends PagerAdapter {
The text was updated successfully, but these errors were encountered: