ckurtm / FabButton

Android Floating ActionButton with a progress indicator ring
774 stars 152 forks source link

CircleImageView doesn't resize its source. #3

Closed dadino closed 9 years ago

dadino commented 9 years ago

cattura I've got this problem. The CircleImageView doesn't seem to resize the source drawable to its size. I'd use a ScaleType like centerFit if it is actually the problem.

ckurtm commented 9 years ago

can you send me a sample xml and image that you're using here? I want to see if I managed to fix this.

dadino commented 9 years ago

A 72x72 PNG at xxhdpi used in this FabButton (button_size is what you use on the sample):

  <mbanje.kurt.fabbutton.FabButton
    android:id="@+id/fab_begin_match"
    android:layout_width="@dimen/button_size"
    android:layout_height="@dimen/button_size"
    android:layout_alignParentBottom="true"
    android:layout_alignParentEnd="true"
    android:layout_alignParentRight="true"
    android:layout_margin="16dp"
    android:color="@color/accent"
    android:indeterminate="true"
    android:src="@drawable/ic_begin_match"
    app:fbb_autoStart="true"
    app:fbb_progressColor="@color/primary"
    app:fbb_progressWidthRatio="0.2"
    />
dadino commented 9 years ago

Did you solve this bug?

ckurtm commented 9 years ago

I've tried this with a 512x512 image and I cant seem to replicate the issue. Even when I use the xml above. Unless you provide with a solid example e.g your whole view hierachy i.e. the xml container . I'm closing this.