Search in sources :

Example 1 with PhotoPreviewAdapter

use of cn.finalteam.galleryfinal.adapter.PhotoPreviewAdapter in project GalleryFinal by pengjianbo.

the class PhotoPreviewActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mThemeConfig = GalleryFinal.getGalleryTheme();
    if (mThemeConfig == null) {
        resultFailureDelayed(getString(R.string.please_reopen_gf), true);
    } else {
        setContentView(R.layout.gf_activity_photo_preview);
        findViews();
        setListener();
        setTheme();
        mPhotoList = (List<PhotoInfo>) getIntent().getSerializableExtra(PHOTO_LIST);
        mPhotoPreviewAdapter = new PhotoPreviewAdapter(this, mPhotoList);
        mVpPager.setAdapter(mPhotoPreviewAdapter);
    }
}
Also used : PhotoInfo(cn.finalteam.galleryfinal.model.PhotoInfo) PhotoPreviewAdapter(cn.finalteam.galleryfinal.adapter.PhotoPreviewAdapter)

Aggregations

PhotoPreviewAdapter (cn.finalteam.galleryfinal.adapter.PhotoPreviewAdapter)1 PhotoInfo (cn.finalteam.galleryfinal.model.PhotoInfo)1