GithubHelp home page GithubHelp logo

shadowfaxtech / proswipebutton Goto Github PK

View Code? Open in Web Editor NEW
346.0 14.0 48.0 1.62 MB

A swipe button for Android with a circular progress bar for async operations

License: MIT License

Java 100.00%
android android-library android-ui android-button android-swipe-button android-view

proswipebutton's People

Contributors

ishaangarg 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

proswipebutton's Issues

Swipe direction

How can I set swipe direction (left to right or right to left)?

Continuous animation better?

Amazing work!

A quick consideration:
Do you think it would be better to have the swipe continuously animate and give the user the ability to order just by tapping the button?
Swiping requires learning a new gesture and would cause some confusion. You don't want to confuse the user when they are about to give you money!

I really like the swipe animation but I think buttons should be clicked and swipe should not be required.

Great library so far!

Reset to original state.

If operation is successful then it should reverse the button just like if the case is unsuccessful.
"#8"
No solution yet? And can we use it for commercial with your license?

version

Thank you for the reset option. Very usefull for me.
Please, don't forget to change the version for the gradle. 1.2 ?

Alain

Need for a reset function

There is not method to reset the proSwipeButton. Once the full swipe has ended the button can not be reseted to the original state. This means every button can only be used once.

package name issues;

Good moring/noon/afternoon/evening,I saw this View on VisualStudio NuGet ;
I download this package and is something happend on my Project; It's seem like the package name changed by xamarin , became the In.ShadowFax; (Last word has been cut,because it's the same as view name )
but the Register path it's still" in.shadowfax.proswipebutton.ProSwipeButton";
That different led to my Activity Crash....
Could U plz to change the package name or the view name to make them different;
Tks...

the swipe animation is buggy in rtl languages

your button works fine if the default language of the device is ltl-direction language like "English" but if I'm using an rtl-direction languages as "Arabic" "العربية" as a default language of the device the animation of the swipe is so buggy and the arrows stuck and sometimes it refuse to swipe and works as normal button,
the device I was using : android Kitkat 4.4.2 API level 19

note: what i meant was not the app:btn_text the language here doesn't matter, the issue is in the chosen default language of the device.

Button Not visible at run time. Studio Preview coming

I have integrated your proswipebutton class and it works fine. I have tried to integrate the same in fragment activty unfortunately its showing white space. see the screen attached. in studio preview like this https://lh3.googleusercontent.com/-gXZlIf27480/XCSk6IYYEdI/AAAAAAAADO8/pH27_khJkc8lv1fet0x7kV7zmJOVfA-MwCL0BGAYYCw/h154/2018-12-27.png mobile preview like this https://lh3.googleusercontent.com/-369T0y7-cX0/XCSk7FeuNAI/AAAAAAAADPA/x1Jamo2S-oEnv9nzX0q1zcojowewEJ7LACL0BGAYYCw/h211/2018-12-27.png Please help me where am doing wrong.

Reset button

Ok, the proSwipeBtn.showResultIcon(false); function can reset the swipe button but this is strange.
When the asyncTask is correct, we send proSwipeBtn.showResultIcon(true); with the check icon, and after some time we send proSwipeBtn.showResultIcon(false); and at that point, the red error icon appears, which is rather destabilizing. It would be nice to have a real proSwipe Button reset function.
Thank you very much in anticipation for your help and your reply
Alain

Need for a reverse function

Hello, great swipe button!

In addition, could it be possible to implement a "reverse()" method which would allow to invert the button, I mean to be able to swipe from right to left?

Thanks in advance.

How to Reset

How to reset swipe button after completion/failed of swipe button. to its previous position.

Reset Function

can we reset swipe button after completion of swipe button. to its previous position.

Reset function too

Hi,
I read the last issue about the reset function.
I can't find the showResult(false) function to use like : myProSwipeButton.showResult(false);
Have you any example ?
Thank a lot.
Alain

customizing the swipe distance

The button works GREAT!! thanks a lot
But the only thing that keeping us from using it is that the user has to swipe for a long distance which is a little annoying.

Would love if we can change the 0.85 percentage in this line:
if (arrowHintContainer.getX() + arrowHintContainer.getWidth() > getWidth() * 0.85)

Button font

i want to change the font of button, have any method to do that?

Reverse function

How can I activate the reverse function for swipe (right to left instead of left to right)? In issue #6 is not specified

Customization of result icon shape

Would be great to have the option to customize the shape of the icon after the Async task completes so that it does not have to be a circle but, for example could expand back to the shape of the swipe button.

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.