shadowfaxtech / proswipebutton Goto Github PK
View Code? Open in Web Editor NEWA swipe button for Android with a circular progress bar for async operations
License: MIT License
A swipe button for Android with a circular progress bar for async operations
License: MIT License
How can I set swipe direction (left to right or right to left)?
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!
Hi Shadowfaxtech I dont need the image for the revolving image and dont need at all. Can you please help
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?
Thank you for the reset option. Very usefull for me.
Please, don't forget to change the version for the gradle. 1.2 ?
Alain
Great library! I would like to have a customizable button shape instead of the two arrows.
Hi, Swipe callback not getting triggered in Kotlin language activity but working fine in Java.
Any input for this plz?
Thanks
Binay
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.
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...
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.
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.
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
Hi all,
do you know can we change the height size of swipebutton. when i change, it seem not display very well.
thank you
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 swipe button after completion/failed of swipe button. to its previous position.
can we reset swipe button after completion of swipe button. to its previous position.
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
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)
i want to change the font of button, have any method to do that?
How can I activate the reverse function for swipe (right to left instead of left to right)? In issue #6 is not specified
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.