Music-Cover-View icon indicating copy to clipboard operation
Music-Cover-View copied to clipboard

Image Size

Open darkdoctor opened this issue 5 years ago • 1 comments

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"/>

darkdoctor avatar May 05 '19 10:05 darkdoctor

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.

andremion avatar May 20 '19 18:05 andremion