Giter VIP home page Giter VIP logo

fabbutton's People

Contributors

anhaytananun avatar bryant1410 avatar ckurtm avatar dimdron avatar lcarmac avatar lgvalle avatar parmegv avatar thiagokimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fabbutton's Issues

Change AndroidManifest.xml

Android studio gives error while debugging app with the library because of the application tag. (Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml: to override)

Remove the useless line from androidmanifest.xml

Progress is next to button

I tried to add this button programmatically, and this caused a bug. It separates progress from the button on the layout, when I start to change progress.

Here is old fab, and on the center here is Progress Fab.
device-2016-02-16-171824

fabButton block onItemClickListener in listView

Hi, Thanks to this great button.
It works well in normal layout, except when i put it in my listView. I found that will lead to onItemClickListener and onItemLongClickListener won't work.
I have tried to set "android:descendantFocusability="blocksDescendants" and make this button focuseable false, but it didn't work.
somebody can help me ?

Size of image

Could you please tell me the size of the image (ic_fab_complete) that you are using.

I set the FAB dimensions to "mini" but the icon which I set is pixelated. I tried using a 24x24 dp icon.

Thank you.

How to migrate it AndroidX?

Hi, I try to use this library in 2020 and I can't. I need to update my app which used this FabButton, bit since november 2020 I need androidX in my project. I cannot make it. Can you help please?

Ripple effect

Hello,
is there any way how to add ripple effect when user clicks FabButton?

Thanks.

Attribute "..." has already been defined

When building the project I get this:

Attribute "progressColor" has already been defined.

The problem is this attr name is alredy defined by another library. My suggestion is to rename your attrs with a specific prefix, like fb or fab, or else you will have problems with other libraries that use your attrs name.

srcCompat attribute required

Currenlty only "src" attribute for png images is supported. For clearer and size-saving design, "srcCompat" attribute for xml vector images support is required.

Set background color , icon image for fab programmatically instead of assigning them in layout

Hi ,
Your github fabButton is very impressive. It's the one of the easiest methods to implement fab animations that i came across.

I am trying to set the background color of the fab button , change the icon image programmatically (using set methods in Activity page) . Is there is any way to do this ?

I tried to set different icons (18,24, 48,36 dp) to the fab buttons but none of them looks promising. It seems every icon is being scaled out to fit in.
or
can you provide the icons link you are referring to , so that i can check whether is there any wrong with my icon collection

Use ShadowDrawableWrapper to draw your shadow

Maybe you should override your OnMeasure in CircleImageView to avoid clipping your shadow. Or you can use ShadowDrawableWrapper to draw your shadow just like FloatingActionButtonEclairMr1.

Just Suggestions

Error:(34, 20) Failed to resolve: mbanje.kurt:fabbutton:1.2.4

@ckurtm :
Hi, give me the following error where I'm wrong?
I also tried to change compile with implementation, as suggested but does not change anything.

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

build

buildscript {
    repositories {
        jcenter()
        maven { url "https://maven.google.com" }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 27
    buildToolsVersion "27.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
    maven { url "https://maven.google.com" }
}
.....

`

hide shadow

in the name of GOD,
hello, thanks chkurtm for this library,
i want to hide shadow, how can i do it?

Consider publishing as a full Maven artefact

The current instructions for using this library is to include @aar in the dependency line, because you're publishing it without a POM on the Maven server. This works fine for apps, but for libraries, it makes it harder because Gradle doesn't remember to add @aar for the library's own dependencies.

Allow us to chose an endBitmap for CircleImageView.

Allow us to chose an endBitmap to show when we call showCompleted(). A setEndIcon(@DrawableRes int endDrawableRes) or setEndIcon(Drawable endDrawable) will be good.
Maybe a showCompleted(@DrawableRes int endDrawableRes) or showCompleted(Drawable endDrawable) to let us chose that on the fly (I know I'll need this, maybe someone else will).

Gradle Project Refresh Error (Can't find FabButton library)

Error:

Could not find fabbutton.jar (mbanje.kurt:fabbutton:1.2.2).
  Searched in the following locations:
      https://jcenter.bintray.com/mbanje/kurt/fabbutton/1.2.2/fabbutton-1.2.2.jar

The FabButton library cannot be found. I have jcenter() in my app's build.gradle and I'm using the most recent library version: compile 'mbanje.kurt:fabbutton:1.2.2@aar'

Let me know if you need anymore information, I'd like to use this library in my project. Thank you!

twice set complete icon

here's my code,
public void startDeterminate() {
button.setIcon(R.drawable.ic_fab_play,R.drawable.ic_fab_complete);
button.resetIcon();
currentProgress = 0;
button.showProgress(true);
button.setProgress(100);
}

For the second time I enter this methed, fabbutton will firstly show complete icon

Nullpointer exception setting progress to 100 on a fragment

When setting the progress for either a determined or undetermined fabbutton to 100, it throws an nullpointer exception:

E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NullPointerException
at mbanje.kurt.fabbutton.CircleImageView.showCompleted(CircleImageView.java:227)
at mbanje.kurt.fabbutton.FabButton.onProgressCompleted(FabButton.java:171)
at mbanje.kurt.fabbutton.ProgressRingView.onIndeterminateValuesChanged(ProgressRingView.java:278)
at mbanje.kurt.fabbutton.FabUtil$2.onAnimationUpdate(FabUtil.java:63)
at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1166)
at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1102)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1131)
at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:616)
at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:639)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:766)
at android.view.Choreographer.doCallbacks(Choreographer.java:575)
at android.view.Choreographer.doFrame(Choreographer.java:541)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:751)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:5751)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)
at dalvik.system.NativeStart.main(Native Method)

Too reproduce the error, I just narrow it down to:

@Override
public void onClick(View v) {
    mButton.showProgress(true);
    mButton.setProgress(100);
}

It will still throw the same exception.

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.