Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 1.66 KB

File metadata and controls

70 lines (45 loc) · 1.66 KB

PhotoBrowse - Android

PhotoBrowse is an Android photo browser that supports dragging off

Preview

Photo Click Photo Drag Known issue
Photo Click Photo Drag Known issue
Photo Spacing
Photo Click

Features

  • Basic photo browsing
  • Click to close the photo
  • Drag to close the photo

Known issue

Installation

Requirements

  • Android SDK Version 21
  • Java Development language

Usage

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);
        }
    }

Author

Does your organization or project use PhotoBrowse? Please let me know by email.

License

PhotoBrowse is available under the MIT license. See the LICENSE file for more info.