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