Comments (10)
@ascmp @stetro I have another workaround by adding these 2 to my FAB
app:fab_elevationCompat="0dp" //this fixes the clipping issue mentioned here
android:layout_margin="3dp" //this fix another type of clipping, should be equals to arcWidth
However, a side effect is that the shadow of my FAB is removed :(
So I have to create another layout for v19 and above with fab_elevationCompat > 0
Here is my layout xml for < v19
<com.github.jorgecastilloprz.FABProgressCircle
android:id="@+id/fabProgressCircle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/main_layout"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="@dimen/medium_space"
android:layout_marginEnd="@dimen/medium_space"
android:layout_marginRight="@dimen/medium_space"
app:arcColor="@color/app_primary_color"
app:arcWidth="3dp"
app:roundedStroke="true">
<com.github.clans.fab.FloatingActionButton
android:id="@+id/btn_big_red_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:src="@mipmap/ic_focusing"
app:fab_elevationCompat="0dp"
app:fab_colorNormal="@color/app_primary_color"
app:fab_colorPressed="@color/app_primary_color_dark"
app:fab_colorRipple="#99FFFFFF"
app:fab_shadowColor="#55000000"
app:fab_shadowRadius="4dp"
app:fab_shadowXOffset="1dp"
app:fab_shadowYOffset="3dp"
app:fab_showShadow="true" />
</com.github.jorgecastilloprz.FABProgressCircle>
from fabprogresscircle.
I experience the very same glitch in 4.4.4, with Support lib FAB.
Very annoying as frustrating.
from fabprogresscircle.
@stetro I found a workaround for it, although the glitch should be fixed at the source. Basically I made a copy of my Support's FAB wrapped by a FrameLayout (which the ProgressCircle extends), and I use a ViewFlipper to switch to the progress circle one only just before I show() the animation, and switch back as soon as I want to hide() the animation:
<ViewFlipper
android:id="@+id/view_flipper"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<FrameLayout
android:id="@+id/frame_non_spinning"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<android.support.design.widget.FloatingActionButton
android:id="@+id/button_non_spinning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
<com.github.jorgecastilloprz.FABProgressCircle
android:id="@+id/frame_spinning"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<android.support.design.widget.FloatingActionButton
android:id="@+id/button_spinning"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</com.github.jorgecastilloprz.FABProgressCircle>
</ViewFlipper>
from fabprogresscircle.
@ascmp I tried your solution, but when the FABProgressCircle is shown, the original clipping problem still exists, doesn't it?
from fabprogresscircle.
@torinnguyen no, not for me at least. The clipping disappeared, but it could be because of some other properties I have set.
Let me be verbose: I was experiencing that clipping problem as in the picture when the FABProgressCircle was not animated (can't recall now if it appeared for me once you animated it at least once or not), and still I could see that dirtiness. Therefore my ugly workaround to show the FABProgressCircle only during the animation period, whereas the animation itself covers the clipping effect. Before and after, switching to the normal FAB guarantee that the clipping is removed from the UI.
from fabprogresscircle.
Any update on this yet? Seems like this project hasn't been worked on for a while.
from fabprogresscircle.
@nak411 @JorgeCastilloPrz wondering the same here; I guess the developer doesn't have the time to neither update this project, nor to fix the already open bugs. My only hope is design lib will bring this animation ootb at one point.
from fabprogresscircle.
same issue
from fabprogresscircle.
same issue
from fabprogresscircle.
could work around the issue with setting the color to transparent when hidden but the needed pull request (setting color at runtime) is not merged and open since 2016...
from fabprogresscircle.
Related Issues (20)
- Different arcColor for the final aspect
- finish animation relative to Volley call
- Strange error trying to cast FABProgessCircle as FloatingActionButton HOT 3
- FABPC + CoordinatorLayout in Fragment + TabLayout = Wrong Placement HOT 2
- Finish animation speed
- beginFinalAnimation() NullPointerException
- Animation is very fast
- Elevation attribute not working
- Customizable Animation Times
- The progress circle is getting cut-off/clipped. It's never a smooth circle for me. HOT 4
- Can't increase size of progress circle
- Not show animation in ConstraintLayout
- Without click, crash and shows null pointer exception
- Can not beginFinalAnimation in recyclerView
- How change image resource back to previous? HOT 1
- Final image not showing HOT 1
- Progress circle set reusable from code
- unable to change finalIcon programatically and fab background color
- Module realized via code
- call show and hide in row HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabprogresscircle.