Skip to content

PhotoBrowse is an Android photo browser that supports dragging off 图片浏览器,支持拉下拖动关闭

License

Notifications You must be signed in to change notification settings

feifeng/PhotoBrowse

Repository files navigation

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.

About

PhotoBrowse is an Android photo browser that supports dragging off 图片浏览器,支持拉下拖动关闭

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages