Search in sources :

Example 1 with AbsBoxingViewActivity

use of com.bilibili.boxing.AbsBoxingViewActivity in project boxing by Bilibili.

the class BoxingRawImageFragment method onViewCreated.

@Override
public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    mProgress = (ProgressBar) view.findViewById(R.id.loading);
    mImageView = (PhotoView) view.findViewById(R.id.photo_view);
    mAttacher = new PhotoViewAttacher(mImageView);
    mAttacher.setRotatable(true);
    mAttacher.setToRightAngle(true);
    ((AbsBoxingViewActivity) getActivity()).loadRawImage(mImageView, mMedia.getPath(), new BoxingCallback(this));
}
Also used : IBoxingCallback(com.bilibili.boxing.loader.IBoxingCallback) AbsBoxingViewActivity(com.bilibili.boxing.AbsBoxingViewActivity) PhotoViewAttacher(uk.co.senab.photoview.PhotoViewAttacher)

Aggregations

AbsBoxingViewActivity (com.bilibili.boxing.AbsBoxingViewActivity)1 IBoxingCallback (com.bilibili.boxing.loader.IBoxingCallback)1 PhotoViewAttacher (uk.co.senab.photoview.PhotoViewAttacher)1