Slider control

103 views
Skip to first unread message

fazkhan.1981

unread,
Oct 25, 2016, 5:26:07 PM10/25/16
to ResearchStack
Hi Guys,

I'm attempting to port an application from ResearchKit to ResearchStack and I came across the need to use a slider scale answer format, but this doesn't seem to be implemented in ResearchStack as of yet. Are there any plans to include this functionality in the near future?

Thanks and regards,

Farhan

Mike Revoir

unread,
Oct 25, 2016, 6:37:04 PM10/25/16
to fazkhan.1981, resear...@googlegroups.com
I've got a slider control that you can start with or could be imported into backbone. If you'll open an issue I'll attach some code to it that we've written. I don't know the state of it off the top of my head as I wasn't the implementor. 

-- Mike

Sent from my phone
--
You received this message because you are subscribed to the Google Groups "ResearchStack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to researchstac...@googlegroups.com.
To post to this group, send email to resear...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/researchstack/d67740fa-caab-4d2f-8820-ac8eaf0ab48c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

madhusudhanan s

unread,
Jan 30, 2019, 5:36:30 AM1/30/19
to ResearchStack
Can you please tell me how to implement slider control in Research stack? I am building an app for a survey so I need this anyway. Please help me.

Mike Revoir

unread,
Jan 30, 2019, 9:35:04 AM1/30/19
to ResearchStack
There is reference code in the comments of https://github.com/ResearchStack/ResearchStack/issues/292 . It’s been a while since I looked at that code, but let me know if you need help.

— Mike

Mike Revoir

unread,
Jan 30, 2019, 3:03:30 PM1/30/19
to ResearchStack, madhusudhanan s
I believe that if you add SliderStepBody into `backbone/src/main/java/org/researchstack/backbone/ui/step/body, SliderAnswerFormat into  `backbone/src/main/java/org/researchstack/backbone/answerformat` and rsb_slider_body.xml `backbone/src/main/res/layout` that you’ll then be able to add the new QuestionType in `backbone/src/main/java/org/researchstack/backbone/answerformat/AnswerFomat` by adding Slider(SliderStepBody.class) to theType enum after line 65.

Hope this helps,

Mike

On Jan 30, 2019, at 1:15 PM, madhusudhanan s <s.madhud...@gmail.com> wrote:

I am using backbone. Don't know how to integrate it you have mentioned above with backbone. Please help me to add this to my project.

Reply all
Reply to author
Forward
0 new messages