Comments (14)
@ares89 & @StephaneBg : I had the same issue using 'support.design.widget.FloatingActionButton', but adding a 'layout_margin' to my FAB did the trick.
Here is my XML :
<FrameLayout
android:id="@+id/frame_layout_gradient"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="@dimen/padding_extra_large">
<com.github.jorgecastilloprz.FABProgressCircle
android:id="@+id/snap_button_progress_circle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:arcColor="@color/my_primary_dark"
app:arcWidth="7dp"
app:finalIcon="@drawable/ic_done_white_48dp">
<android.support.design.widget.FloatingActionButton
android:id="@+id/snap_button"
android:layout_width="230dp"
android:layout_height="230dp"
android:layout_margin="35dp"
android:layout_gravity="end|bottom"
android:src="@drawable/snap_p" />
</com.github.jorgecastilloprz.FABProgressCircle>
</FrameLayout>
from fabprogresscircle.
Add android:clipChildren="false"
to the parent layout. Worked for me.
EDIT: However that seems to leave an ugly orange border in 4.x devices...
from fabprogresscircle.
I am not at home atm, but i will check it out asap. In the meantime, if you find the problem pls tell me.
from fabprogresscircle.
Hi,
I confirm also this issue. Still use 1.0.
Thanks for the hard work.
from fabprogresscircle.
Paste your XML layot too if you can. I will study the problem asap.
El 17/6/2015 13:03, "Stéphane B." [email protected] escribió:
Hi,
I confirm also this issue. Still use 1.0.
Thanks for the hard work.—
Reply to this email directly or view it on GitHub
#7 (comment)
.
from fabprogresscircle.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:title="@string/app_name"/>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
app:tabIndicatorColor="@color/white"
tools:visibility="visible"/>
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<ImageView
android:id="@+id/iv_empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_bluetooth_disabled"/>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<include layout="@layout/include_msg_bars"/>
</FrameLayout>
<com.github.jorgecastilloprz.FABProgressCircle
android:id="@+id/fab_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_margin="@dimen/activity_horizontal_margin"
android:scaleX="0"
android:scaleY="0"
app:arcColor="?attr/colorPrimary">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_action_ping"
android:tint="@color/white"/>
</com.github.jorgecastilloprz.FABProgressCircle>
</android.support.design.widget.CoordinatorLayout>
from fabprogresscircle.
It's not compatible with android.support.design.widget.FloatingActionButton. But it seems work with other floating button library. By the way, I can seem little progress color around floating button when I don't show the FABProgressCircle
from fabprogresscircle.
Any solution to this? Or you're using other FAB library?
from fabprogresscircle.
Seems like only compatible with futuresimple/android-floating-action-button.
https://github.com/futuresimple/android-floating-action-button
from fabprogresscircle.
I can't see the progressbar at all if i set a custom width/height for the fab
<com.github.jorgecastilloprz.FABProgressCircle
android:id="@+id/fabProgressCircle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:arcColor="@color/primary_dark"
app:arcWidth="7dp"
app:layout_anchorGravity="bottom|right|end">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_margin="15dp"
android:clickable="true"
android:src="@drawable/ic_favorite_white_48dp"
app:borderWidth="0dp"
app:layout_anchorGravity="bottom|right|end" />
</com.github.jorgecastilloprz.FABProgressCircle>
from fabprogresscircle.
same problem.
from fabprogresscircle.
@ares89 & @StephaneBg please use @maxenceC trick. it works for me too
from fabprogresscircle.
should close this issues, please :)
from fabprogresscircle.
I ran across the same issue. The FABProgressCircle works fine, except for some Samsung 4.1 devices, where you still see a clipped outline around your FAB when the progress should be invisible (see image in the first comment).
I was able to fix this issue by rolling back to version 1.0
.
I think a bug was introduced in version 1.01
with the implementation of the reusable
feature. Setting it to true or false does not fix the bug, so something in the 1.01
code base is at fault.
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.