Android Open Source - Android-Mutiple-Select-Gallery V G Compare






From Project

Back to project page Android-Mutiple-Select-Gallery.

License

The source code is released under:

MIT License

If you think the Android project Android-Mutiple-Select-Gallery 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.pgk.venusgallery.utils;
//w ww .j  a v a 2  s .  c o m
import java.util.List;

import com.pgk.venusgallery.models.VGAlbum;

public class VGCompare {
  
  public static boolean doesListContainAlbum(List<VGAlbum> albumList, VGAlbum album) {
    
    for(VGAlbum a : albumList) {
      if (a.getIdx().contains(album.getIdx())) {
        return true;
      }
    }
    
    return false;
  }
  
  public static Integer getIndexWhereAlbum(List<VGAlbum> albumList, VGAlbum album) {
    
    for(int i = 0; i < albumList.size(); i++) {
      
      VGAlbum a = albumList.get(i);
      
      if (a.getIdx().contains(album.getIdx())) {
        return i;
      }
    }
    
    return -1;
  }
}




Java Source Code List

com.pgk.venusgallery.GalleryActivity.java
com.pgk.venusgallery.TestActivity.java
com.pgk.venusgallery.adapter.AlbumAdapter.java
com.pgk.venusgallery.adapter.PhotoAdapter.java
com.pgk.venusgallery.fragments.AlbumGalleryFragment.java
com.pgk.venusgallery.fragments.PhotoGalleryFragment.java
com.pgk.venusgallery.models.VGAlbum.java
com.pgk.venusgallery.models.VGManager.java
com.pgk.venusgallery.models.VGPhoto.java
com.pgk.venusgallery.opts.VGGallery.java
com.pgk.venusgallery.opts.VGModel.java
com.pgk.venusgallery.utils.VGCompare.java
com.pgk.venusgallery.utils.VGMediaStore.java
com.pgk.venusgallery.utils.VGSquareImageView.java