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

Image Size #6

Open
darkdoctor opened this issue May 5, 2019 · 1 comment
Open

Image Size #6

darkdoctor opened this issue May 5, 2019 · 1 comment
Labels

Comments

@darkdoctor
Copy link

darkdoctor commented May 5, 2019

Hi.

I am trying to load an small image into, but scaling does not affect anything.

<com.andremion.music.MusicCoverView
    android:id="@+id/cover"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:scaleType="centerCrop"
    android:src="@drawable/ic_launcher"
    android:transitionName="@string/transition_name_cover"
    app:layout_heightPercent="35%"
    app:shape="circle"/>
@andremion
Copy link
Owner

Hi @darkdoctor
This library overrides the scale type:
https://github.com/andremion/Music-Cover-View/blob/master/library/src/main/java/com/andremion/music/MusicCoverView.java#L307
During transition the scale will be ScaleType.CENTER_INSIDE when it's a circle or ScaleType.CENTER_CROP when it's a rectangle.

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

No branches or pull requests

2 participants