PhotoBrowse is an Android photo browser that supports dragging off
Photo Click | Photo Drag | Known issue |
---|---|---|
Photo Spacing |
---|
- Basic photo browsing
- Click to close the photo
- Drag to close the photo
- Android SDK Version 21
- Java Development language
public void onItemClick(View view) {
int position = photoRecyclerView.getChildAdapterPosition(view);
Intent intent = new Intent(this, BrowseActivity.class);
intent.putStringArrayListExtra("PHOTO_PATH", photoPathList);
intent.putExtra("index", position);
ImageView imageView = view.findViewById(R.id.photoImageView);
if (Build.VERSION.SDK_INT >= 22) {
ActivityOptionsCompat compat = ActivityOptionsCompat.makeSceneTransitionAnimation(this, imageView, photoPathList.get(position));
startActivity(intent, compat.toBundle());
}else {
startActivity(intent);
}
}
Does your organization or project use PhotoBrowse? Please let me know by email.
- weifans, [email protected]
- SLEEP WIND https://sleepwind.com
PhotoBrowse is available under the MIT license. See the LICENSE file for more info.