Skip to content

tanshion/PhotoDraweeView

 
 

Repository files navigation

PhotoDraweeView

PhotoView For Fresco

Download

PhotoDraweeView

##Gradle

dependencies {
    compile 'com.facebook.fresco:fresco:0.14.1'
    compile 'me.relex:photodraweeview:1.1.2'
}

##Usage

mPhotoDraweeView.setPhotoUri(Uri.parse("http://your.image.url"));

#####Using the ControllerBuilder

PipelineDraweeControllerBuilder controller = Fresco.newDraweeControllerBuilder();
controller.setUri(URI);
controller.setOldController(mPhotoDraweeView.getController());
controller.setControllerListener(new BaseControllerListener<ImageInfo>() {
    @Override
    public void onFinalImageSet(String id, ImageInfo imageInfo, Animatable animatable) {
        super.onFinalImageSet(id, imageInfo, animatable);
        if (imageInfo == null || mPhotoDraweeView == null) {
            return;
        }
        mPhotoDraweeView.update(imageInfo.getWidth(), imageInfo.getHeight());
    }
});
mPhotoDraweeView.setController(controller.build());

##Issues With ViewGroups

##ChangeLog

1.1.2 (2016-10-18)
  • Add getAttacher method
  • Add Custom ScaleStepDoubleTapListener(@interchen)
1.1.1 (2016-10-08)
  • Add setOrientation method, support edge scroll in RecyclerView. (@PureDark)
1.1.0 (2016-08-11)
  • Add setPhotoUri method
  • Fix failureImage ScaleType

##License

Copyright 2015-2016 Relex

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Packages

No packages published

Languages

  • Java 100.0%