/ Images

An Android photo browser that supports dragging off

An Android photo browser that supports dragging off

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

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

GitHub