me.iwf.photopicker.entity.Photo Java Examples
The following examples show how to use
me.iwf.photopicker.entity.Photo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ @Override public void toggleSelection(Photo photo) { if (selectedPhotos.contains(photo.getPath())) { selectedPhotos.remove(photo.getPath()); } else { selectedPhotos.add(photo.getPath()); } }
Example #2
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
public List<String> getCurrentPhotoPaths() { List<String> currentPhotoPaths = new ArrayList<>(getCurrentPhotos().size()); for (Photo photo : getCurrentPhotos()) { currentPhotoPaths.add(photo.getPath()); } return currentPhotoPaths; }
Example #3
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ @Override public void toggleSelection(Photo photo) { if (selectedPhotos.contains(photo.getPath())) { selectedPhotos.remove(photo.getPath()); } else { selectedPhotos.add(photo.getPath()); } }
Example #4
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
public List<String> getCurrentPhotoPaths() { List<String> currentPhotoPaths = new ArrayList<>(getCurrentPhotos().size()); for (Photo photo : getCurrentPhotos()) { currentPhotoPaths.add(photo.getPath()); } return currentPhotoPaths; }
Example #5
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ @Override public void toggleSelection(Photo photo) { if (selectedPhotos.contains(photo.getPath())) { selectedPhotos.remove(photo.getPath()); } else { selectedPhotos.add(photo.getPath()); } }
Example #6
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 5 votes |
public List<String> getCurrentPhotoPaths() { List<String> currentPhotoPaths = new ArrayList<>(getCurrentPhotos().size()); for (Photo photo : getCurrentPhotos()) { currentPhotoPaths.add(photo.getPath()); } return currentPhotoPaths; }
Example #7
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 4 votes |
public List<Photo> getCurrentPhotos() { return photoDirectories.get(currentDirectoryIndex).getPhotos(); }
Example #8
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 4 votes |
public List<Photo> getCurrentPhotos() { return photoDirectories.get(currentDirectoryIndex).getPhotos(); }
Example #9
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 4 votes |
public List<Photo> getCurrentPhotos() { if (photoDirectories.size() <= currentDirectoryIndex) { currentDirectoryIndex = photoDirectories.size() - 1; } return photoDirectories.get(currentDirectoryIndex).getPhotos(); }
Example #10
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position position is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ boolean isSelected(Photo photo);
Example #11
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ void toggleSelection(Photo photo);
Example #12
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position where is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ @Override public boolean isSelected(Photo photo) { return getSelectedPhotos().contains(photo.getPath()); }
Example #13
Source File: OnItemCheckListener.java From PhotoPicker with Apache License 2.0 | 2 votes |
/*** * * @param position 所选图片的位置 * @param path 所选的图片 * @param selectedItemCount 已选数量 * @return enable check */ boolean onItemCheck(int position, Photo path, int selectedItemCount);
Example #14
Source File: OnItemCheckListener.java From PhotoPicker with Apache License 2.0 | 2 votes |
/*** * * @param position 所选图片的位置 * @param path 所选的图片 * @param selectedItemCount 已选数量 * @return enable check */ boolean onItemCheck(int position, Photo path, int selectedItemCount);
Example #15
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position position is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ boolean isSelected(Photo photo);
Example #16
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ void toggleSelection(Photo photo);
Example #17
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position where is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ @Override public boolean isSelected(Photo photo) { return getSelectedPhotos().contains(photo.getPath()); }
Example #18
Source File: SelectableAdapter.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position where is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ @Override public boolean isSelected(Photo photo) { return getSelectedPhotos().contains(photo.getPath()); }
Example #19
Source File: OnItemCheckListener.java From PhotoPicker with Apache License 2.0 | 2 votes |
/*** * * @param position 所选图片的位置 * @param path 所选的图片 * @param selectedItemCount 已选数量 * @return enable check */ boolean onItemCheck(int position, Photo path, int selectedItemCount);
Example #20
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Indicates if the item at position position is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ boolean isSelected(Photo photo);
Example #21
Source File: Selectable.java From PhotoPicker with Apache License 2.0 | 2 votes |
/** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ void toggleSelection(Photo photo);