FABProgressCircle icon indicating copy to clipboard operation
FABProgressCircle copied to clipboard

The progress circle is getting cut-off/clipped. It's never a smooth circle for me.

Open epiphany27 opened this issue 8 years ago • 4 comments

fab-ss1 fab-ss2

Please let me know what am I doing wrong. I am trying below sample example. I do not have coordinator layout in my case, which I think should not be an issue.

<com.github.jorgecastilloprz.FABProgressCircle
            android:id="@+id/fabProgressCircle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/address_autocomplete_text_inp_layout"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="40dp"
            app:arcWidth="7dp">

            <!-- You can change it with the fab from the library you want to use -->
            <android.support.design.widget.FloatingActionButton
                android:id="@+id/fab"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_arrow_forward_white_24dp"
                app:borderWidth="0dp"/>

        </com.github.jorgecastilloprz.FABProgressCircle>

epiphany27 avatar Aug 07 '17 13:08 epiphany27

Use android:clipToPadding="false". That should solve it for you.

crearo avatar Sep 07 '17 15:09 crearo

This is indeed a bug in the library, it sets dimensions for the arc view based on hard coded expected fab size + single arc width. It should be using double arc width instead. Setting clipToPadding to false will help but only if you actually give FABProgressCircle some padding, otherwise it will still be clipped by FABProgressCircle's parent.

afedorychak avatar Oct 03 '17 21:10 afedorychak

Had the same issue. android:clipToPadding="false" didn't solve it for me. Setting app:useCompatPadding="true" for the FloatingActionButton solved it for me.

hablema avatar May 25 '18 04:05 hablema

set a value to the layout-width and layout-height of the <com.github.jorgecastilloprz.FABProgressCircle /> tag Then you can increase the arc-width to make it more visible. like :

android:layout_width="75dp" android:layout_height="75dp"

LucasBourgeois avatar Mar 27 '19 10:03 LucasBourgeois