Android Open Source - african-art-talent-discovery Image Pager Adapter

From Project

Back to project page african-art-talent-discovery.


The source code is released under:

GNU General Public License

If you think the Android project african-art-talent-discovery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.appsng.adapters;
/* w ww  . j  a v  a2s  .  c o m*/
import java.util.List;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class ImagePagerAdapter extends PagerAdapter {

    private List<ImageView> images;

    public ImagePagerAdapter(List<ImageView> images) {
        this.images = images;

    public Object instantiateItem(ViewGroup container, int position) {
        ImageView imageView = images.get(position);
        return imageView;

    public void destroyItem(ViewGroup container, int position, Object object) {

    public int getCount() {
        return images.size();

    public boolean isViewFromObject(View view, Object o) {
        return view == o;

Java Source Code List