feifeng / PhotoBrowse

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

Home Page:https://feifeng.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 图片浏览器,支持拉下拖动关闭

https://feifeng.cn

License:Apache License 2.0


Languages

Language:Java 100.0%