-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for answerOptions as images/icons #1614
Comments
@shelaghm can you add an example UI for this control. Ty. |
I think this might be better achieved using the itemAnswerMedia Extension This is similar to the ItemMedia Extension implemented Both are currently DRAFT cc: @jingtang10 |
@FikriMilano Are you interested in picking this up as it is very similar to the itemMedia Extension, but for answerOptions. cc: @f-odhiambo |
@shelaghm @jingtang10 |
@PallaviGanorkar I think we should show the radio checkbox, because it makes it clear what type of a selection it is. |
Yes, Thanks @shelaghm |
can we focus on using the item answer media extension? not sure how well the xhtml extension will work on andorid - maybe we should do a little bit more exploration there. but for now, let's get the item answer media extension working with the data field (in its examples they're using the url field). |
@shelaghm I have 2 queries for display image for item answerOptions
cc: @jingtang10 |
|
discussed with @PallaviGanorkar. just really quickly: 1) i think we might need to scale the image whilst preserving the aspect ratio. 2) we should do some testing to see if it's possible for the questionnaire to provide an icon with transparent background so it works with different application theme and style. |
@shelaghm I am using 48x48 image size here, Please let me know if you have other opinion about it |
48x48 is a good size @PallaviGanorkar |
@jingtang10 As discussed tested image/png icons with transparent background and it works fine. Please find attached screen shot for details, |
@jingtang10 Here .png, jpeg, jpg format is supported and tested. Also looking into to support .svg format if possible. |
thanks you for this this is great @PallaviGanorkar |
Is your feature request related to a problem? Please describe.
Be able to use images (e.g icons) for radio buttons
Describe the solution you'd like
As a developer I can use images to represent radio button options. These should work as radio button itemControls
See an example of using the "answerOption and rendering-xhtml" from the SDC spec here
Example shows two ways to use
tags to display images: (1) with embedded data and (2) using contained Binary resources
Need to define the best approach for Android
The text was updated successfully, but these errors were encountered: