ashik94vc / elegantnumberbutton Goto Github PK
View Code? Open in Web Editor NEWWidget which acts as a number counter which changes its number on +/- press.
License: Apache License 2.0
Widget which acts as a number counter which changes its number on +/- press.
License: Apache License 2.0
is it possible to make the elegant number button to be editable so that you can key in any value
Please, remove android:icon="@mipmap/ic_launcher"
from your library! I have a compile time exception
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application@icon value=(@mipmap/cashbox) from AndroidManifest.xml:30:9-39
is also present at [com.cepheuen.elegant-number-button:lib:1.0.2] AndroidManifest.xml:13:9-43 value=(@mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:27:5-56:19 to override.
app crashes due to elegant number button showing no errors. if removed elegant number button, app works. please help.
I'm sorry to bother, I'm new to android development and I found the elegant number button very useful, I'd like to know how I can change the numbers instead of 1 increments of 100 in 100, example 100 200 300 400 and so on .. .
Sorry for english
Thanks
Looks like calling setBackgroundColor(Color c) doesn't affect the coloring, I can only setting color via XML!
any thoughts?
how can i change Font or set Typeface ?
I'm setting Typeface in java but can't resolve this method
Typeface face = Typeface.createFromAsset(getContext().getAssets(),getContext().getString(R.string.font));
setTypeface(face);
I think it will be good to show the minus and plus after setting visually unclickable. For example if I set setRange(1, 5) so when on 1 the minus button will fade a little bit and when on 5 the plus button.
Currently, the library does not have any unitTest cases. Anyone, willing to contribute can write unitTests and end to end tests to cover the entire library and the example project.
in RVAdapter,
public static ElegantNumberButton button;
in MainActivity,
SubMenuRVAdapter.button.setNumber("0");
When I click Send button, I want to set ElegantNumberButton number "0" as a default. This ElegantNumberButton, findViewById come from RVAdapter.
Please I need the button inside the recyclerView and its too much big to see the + - make it smaller so it can fill inside each cardView in a recycler view
thanks
Is it possible to make the number button Editable so that you can type inside the number for example when you want to input 100 you don't have to tap + until you reach 100
Ripple effect option on button needed for best UX!
Attribute application@icon value=(@mipmap/logo) from AndroidManifest.xml:11:9-36
is also present at [com.cepheuen.elegant-number-button:lib:1.0.2] AndroidManifest.xml:13:9-43 value=(@mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:9:5-36:19 to override.
How to disable ElegantNumberButton click listener
when try to generating APK above issue generate.
Avira antivirus detects the R$id.class file of the library as a virus/malware
The pattern of 'EXP/Flash.EB.212 [exploit]'
detected in file 'C:....\app\build\intermediates\transforms\instantRunSlicer\debug\folders\1\5\slice_5\com\cepheuen\elegantnumberbutton\R$id.class.
Action performed: Move file to quarantine
Just a suggestion, but because this is essentially an Android equivalent of a UIStepper, you may want to consider adding a UIStepper (& Stepper) tag. I was searching for a library like this but I didn't find this through GitHub's search. I found it through Google.
The method ElegantNumberButton.setNumber() should take Integer parameters but it's asking for String paramenters in Android Stuudio.
Not Sync Build()
Is there a built in method to set min and max acceptable values.
Use case: I want users to only be able to select values between 1 and 5.
I am creating an app which I use this library for adding the cart item but the problem is button colour not change in dynamically. I use this code but not change the color
numberButton.setOnValueChangeListener(new ElegantNumberButton.OnValueChangeListener() {
@Override
public void onValueChange(ElegantNumberButton view, int oldValue, int newValue) {
if(newValue!=0)
numberButton.setBackgroundColor(getResources().getColor(R.color.lime_green));
else
numberButton.setBackgroundColor(getResources().getColor(R.color.yellow));
}
});
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.