Comments (14)
This seems to be an issue with nestedScrolling. I started a fix, but I'm not yet done.
from surveykit.
This seems to be a harder problem than expected. The NumberPicker
used in the android.widget.DatePicker
does not support nested scrolling. So if the screen is too small for the datepicker and it has to scroll, the year selection just does not work.
I've tried to use MaterialDatePicker
from com.google.android.material.datepicker.MaterialDatePicker
( https://github.com/material-components/material-components-android/blob/master/docs/components/Picker.md )but that is using Fragments, which I'm not using at all.
The next best thing I'll try to do is replace the DatePicker
with a view that shows the selected date and on click I'll just open the DatePickerDialog
which does not have this problem at all.
In my opinion it's not as pretty as having the date picker inline, but there is no way around.
from surveykit.
Also doesn't work with the dialog on a small enough phone: https://github.com/quickbirdstudios/SurveyKit/tree/feature/date-picker-scroll-issue
from surveykit.
Bug report: https://issuetracker.google.com/issues/115395128
from surveykit.
@rahul260792 Did you find this on an emulator or on real device?
from surveykit.
@KlausNie I found this on real device.
from surveykit.
What I found out is, that if the screen resolution is small, but the API level is 28+, this occurs. The issue at google is closed at the moment on google's side. I'l wait for a change there. Until then this issue is on hold.
from surveykit.
I got the same problem on Huawei Nova 3i, which is not small. Will you fix this issue @KlausNie
from surveykit.
The issue is: on phones where the screen is small enough so that the NumberPicker has to scroll, the number picker itself scrolls, but not the content. This happens in the dialog as well as in the inline DatePicker.
Currently, I have not found a way to fix this.
My next options will be to try to find a library that does not have this issue.
from surveykit.
Not quite sure about the root cause but I didn't use dialog in the survey. (Does this lib use dialog behind?)
When I move the datepicker out of SurveyView, it works fine and I can scroll.
I think there is sth wrong with the height of DatePicker view inside SurveyView.
from surveykit.
I thought so too, but then I tried the DatePickerDialog in the SurveyView and I had the same issue. How can the SurveyView impact that?
from surveykit.
Any updates? Encountered this problem on multiple mobile phones
from surveykit.
#32 (comment)
this work good on android 10 emulator with 300px X 300px
from surveykit.
work fail on 200px X 250px
from surveykit.
Related Issues (20)
- First page should not have a back button
- Can not create Form Step HOT 1
- Resume survey from last question HOT 1
- How can I just get the integer answers from my survey so I can calculate a score? HOT 1
- AbortDialogConfig Not Accessible HOT 1
- "Submit Survey" button not clickable after click one time HOT 6
- Unable to change theme colour. HOT 4
- Add publish script in github actions.
- Update README with instructions to help developers fix CI issues.
- How to use in Jetpack Compose only navigation
- Survey kit is lagging when used in a compose only navigation
- Adding CustomStep on First App Crash HOT 1
- Java version HOT 1
- Incorrect Library Setup in readme file HOT 1
- Text Configuration HOT 1
- json schema
- Customize "Cancel, Next" Button and Alert "Cancel"
- In result how to get the original ids or position of all yes and no click position
- Move to GitHub actions
- Conditional rule does not trigger when selecting multiple answer (JSON TASK)
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 surveykit.