Skip to content

How to make the width of the image is full of the viewport. #273

@iboying

Description

@iboying

1、This is my code:

detail_image = getViewById(R.id.detail_image);
detail_image.setMinimumScaleType(SCALE_TYPE_CUSTOM);
detail_image.setScaleX(1.0f);
...
Glide
    .with(context).load(imageUrl)
    .downloadOnly(new SimpleTarget<File>() {
          @Override
          public void onResourceReady(File resource, GlideAnimation<? super File> glideAnimation) {
                    detail_image.setImage(ImageSource.uri(Uri.fromFile(resource)), new ImageViewState(1.0f, new PointF(0, 0), 0));
});

2、This is my screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions