GithubHelp home page GithubHelp logo

Comments (14)

maxenceC avatar maxenceC commented on July 23, 2024 3

@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.

Mygod avatar Mygod commented on July 23, 2024 2

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.

JorgeCastilloPrz avatar JorgeCastilloPrz commented on July 23, 2024

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.

StephaneBg avatar StephaneBg commented on July 23, 2024

Hi,
I confirm also this issue. Still use 1.0.
Thanks for the hard work.

from fabprogresscircle.

JorgeCastilloPrz avatar JorgeCastilloPrz commented on July 23, 2024

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.

StephaneBg avatar StephaneBg commented on July 23, 2024
<?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.

luwei2012 avatar luwei2012 commented on July 23, 2024

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.

javiermanzano avatar javiermanzano commented on July 23, 2024

Any solution to this? Or you're using other FAB library?

from fabprogresscircle.

luwei2012 avatar luwei2012 commented on July 23, 2024

Seems like only compatible with futuresimple/android-floating-action-button.
https://github.com/futuresimple/android-floating-action-button

from fabprogresscircle.

ArthurSav avatar ArthurSav commented on July 23, 2024

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.

GhostFlying avatar GhostFlying commented on July 23, 2024

same problem.

from fabprogresscircle.

radityagumay avatar radityagumay commented on July 23, 2024

@ares89 & @StephaneBg please use @maxenceC trick. it works for me too

from fabprogresscircle.

radityagumay avatar radityagumay commented on July 23, 2024

should close this issues, please :)

from fabprogresscircle.

ajhuntsman avatar ajhuntsman commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.