razir / ProgressButton

Android Progress Button
856 stars 77 forks source link

How to implement by using Java #22

Closed Rajatagarwal24 closed 4 years ago

Rajatagarwal24 commented 4 years ago

Hello,

I want to use this lib but unable to understand how can I use it in layout.xml file. And I m using Java for development so can you please help us with how we can implement it with java. Thanks

razir commented 4 years ago

Hi @Rajatagarwal24 , for the layout.xml you don't have to do anything special. You can just use general <Button/> tag or any of your custom view. This library is not a separate custom view, but just a wrapper around any of the existing views.
As for the java usage, you check the answer here https://github.com/razir/ProgressButton/issues/14 Hope it will help. Please let me know if you need a more detailed guide.

Rajatagarwal24 commented 4 years ago

@razir Thanks for such good lib... but I had tried your suggestion but not working with java. Thanks

razir commented 4 years ago

@Rajatagarwal24 could you share the code you have to show the progress?

Arielony commented 4 years ago

@razir Please can you upload a Simple Java Implementation? I love this plugin.

razir commented 4 years ago

Big thanks to @JcMinarro, you can now find samples here. Make sure you update the library version >= 2.1.0