Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ScaleType as attribute so it can be set from xml #541

Open
bio007 opened this issue Feb 3, 2021 · 0 comments
Open

Feature request: ScaleType as attribute so it can be set from xml #541

bio007 opened this issue Feb 3, 2021 · 0 comments

Comments

@bio007
Copy link

bio007 commented Feb 3, 2021

I would like to request simple handy feature to control scale type via xml attributes. Right now it can only be set from code calling setMinimumScaleType or (hacky) using databinding like this:

<com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
    android:id="@+id/photo"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    app:minimumScaleType="@{2}"/>

Standard ImageView has this feature so it would be nice to have it here too.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant