Search in sources :

Example 1 with ResizableFrameLayout

use of com.facebook.fresco.samples.showcase.imagepipeline.widget.ResizableFrameLayout in project fresco by facebook.

the class MediaVariationsFragment method populateMainImage.

private void populateMainImage(View rootView) {
    mMainImageDraweeView = (SimpleDraweeView) rootView.findViewById(R.id.img_main);
    loadMainImage();
    mMainImageDraweeView.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            loadMainImage();
        }
    });
    ResizableFrameLayout mainImageFrameLayout = (ResizableFrameLayout) rootView.findViewById(R.id.frame_main);
    mainImageFrameLayout.init(rootView.findViewById(R.id.btn_resize));
}
Also used : ResizableFrameLayout(com.facebook.fresco.samples.showcase.imagepipeline.widget.ResizableFrameLayout) SimpleDraweeView(com.facebook.drawee.view.SimpleDraweeView) View(android.view.View)

Aggregations

View (android.view.View)1 SimpleDraweeView (com.facebook.drawee.view.SimpleDraweeView)1 ResizableFrameLayout (com.facebook.fresco.samples.showcase.imagepipeline.widget.ResizableFrameLayout)1