teams: smoother survey rating scaling (fixes #13498)#13499
Merged
Conversation
Add support for configurable rating scales and replace static 1-9 buttons with dynamically generated buttons. RealmExamQuestion: introduce scaleMax (default 9) and parse it from JSON (fallback to 9 when invalid). ExamTakingFragment: generate rating buttons at runtime based on question.scaleMax, create styled StateListDrawable backgrounds (with optional gradient for 9-step scale), handle selection, maintain dynamicRatingButtons list, and clean up on destroy. Layout: change ll_rating_scale to wrap_content and remove hardcoded rating buttons so the fragment builds them dynamically. Overall: enable variable-length rating scales and improve styling/responsiveness.
❌ 1 blocking issue (1 total)
|
dogi
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #13498
https://github.com/user-attachments/assets/83b531f3-6b5a-455f-9160-ed13f90ea76e