Comments (4)
Understood. Can you try to remove the buttons? You can use show_controls
and show_fast_controls
to hide them. Width is tied to height only when buttons are visible.
For the time being, you could add your own arrow buttons next to the picker (if you need them) and I'll look into the issue when I have some spare time.
from actual-number-picker.
Would you really want to expand to match_parent
? The number of lines in the picker is fixed, so it would look really wierd if you don't control the width. You can check out the #onMeasure()
method to see what's happening.
Setting the width to wrap_content
should resize it to match the number of visible buttons (either 0, 3 or 5 are visible), and setting the witdh in DP should work as well - I use it in several places and it works fine. Can you post your layout here? I can check what's wrong
from actual-number-picker.
I used it in a project on GitHub, even weight
worked. Maybe Android Studio is having issues rendering it, did you try it on a device?
from actual-number-picker.
I have uploaded the layout here: https://github.com/ahmadalibaloch/Code2Discuss/blob/master/quotation_edit_dialog.xml
You can see how it look in preview and same in real device, If i increase the height it increases the width too.
from actual-number-picker.
Related Issues (15)
- new attribute step size? HOT 2
- W/View: ActualNumberPicker not displayed because it is too large to fit into a software layer (or drawing cache), needs 15322800 bytes, only 14745600 available HOT 8
- Can't compile HOT 7
- Values as float HOT 1
- how can i use this function to stop wrapinng between min and max? HOT 1
- Bug : i can't set value programmatically!! HOT 4
- duplicate values in values.xml HOT 5
- not any bug or something but i want my slow key to add or subtract 0.1 and fast key to add or subtract 1 HOT 6
- How to discern how a value change is made HOT 3
- how to handle onValueChanged while using multiple ActualNumberPicker! HOT 3
- Touching the view should not fire valueChange event but only dragging HOT 4
- Let max and min range be set programmatically HOT 15
- Doesn't showing on Android 6.0 if on ListView HOT 3
- Picker is not working for high values range HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actual-number-picker.