hariofspades / incdec Goto Github PK
View Code? Open in Web Editor NEWIncrement and Decrement
License: Apache License 2.0
Increment and Decrement
License: Apache License 2.0
If i remove the IncDecImageButton
widget from the layout. The App works perfectly. I don't know what's wrong!
Here is the stack trace
android.view.InflateException: Binary XML file line #86: Error inflating class com.hariofspades.incdeclibrary.IncDecImageButton
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
LAYOUT
<LinearLayout
android:id="@+id/quantity_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_centerInParent="true">
<com.hariofspades.incdeclibrary.IncDecImageButton
android:id="@+id/incdec"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:textSizeB="18"
app:textColorB="@color/darkGreen"
app:leftDrawableTintB="@color/darkGreen"
app:rightDrawableTintB="@color/darkGreen"
app:leftDrawableB="@drawable/ic_remove_circle_outline_black_24dp"
app:rightDrawableB="@drawable/ic_add_circle_outline_black_24dp"/>
</LinearLayout>
great efforts, Good work !! before trying out this lib I just want to use multiple widgets with integers, depending upon the other widget number , current widget range should be changed.
example: depending on the hotel room selected , set range for the number of adults person range dynamically possible?!!
currently exploring using this https://github.com/ashik94vc/ElegantNumberButton
update: used this i have to use setArrayList again and again !! I want like set setArrayList once and only change the range or given position to end position will be grateful
can not set index value explicitely. By setting ArrayIndexValue it sets index as start
I need to create a picker like this one.
I tried using the IncDecImageButton
. But I can't remove the background of the Image Button as like the Native Image Button.
My picker contains only Int values. So how can we make OnValueChangeListener
to return only int values ?
shotViewHolder.mPicker.setOnValueChangeListener(new IncDecImageButton.OnValueChangeListener() {
@Override
public void onValueChange(IncDecImageButton view, float oldValue, float newValue) {
if (newValue == 0.0) {
itemRemoved(shotViewHolder);
}
}
});
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.