AndreiD/surveylib

Description doesn't appear

sorrento opened this issue · 7 comments

Hi,
in the example example1.json, there is a description "(Select all that apply)", that actually doesnt' appear in the survey. Is it maybe that the font color is the same as the background? (white).

UPDATE as @CrandellWS pointed out, it's just that it is not implemented. It should be in FragmentCheckBoxes.java and its xml. Thanks

the method does not seem to ever get used https://github.com/AndreiD/surveylib/search?utf8=%E2%9C%93&q=getDescription

have a look at:

for (Question mQuestion : mSurveyPojo.getQuestions()) {

As an example the referenced question happens to a be a checkbox so it will use

https://github.com/AndreiD/surveylib/blob/master/surveylib/src/main/java/com/androidadvance/androidsurvey/fragment/FragmentCheckboxes.java

and

https://github.com/AndreiD/surveylib/blob/master/surveylib/src/main/res/layout/fragment_checkboxes.xml

notice in the layout there is nowhere for a description to go, you would need to create it.

Listen people... This is not fitting to be a library
I was thinking that people who use this "library" better just download the files, copy paste them, and easily edit them, because in 99% it would require custom stuff

Was the issue on displaying the Description working? I'm using the Library and it seems not to display description. Please explain how we are supposed to use this feature

@AlexMuriithi see my comments #6 (comment)
take notice of textview_q_title and copy how the title is loaded but make it for the description.

@AndreiD it's all good, your work helped me thank you.

@CrandellWS Thank you it worked as per your instructions. Appreciated.