-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fixes part of #40 & #42: Outer margins changed for SelectionInteraction #3183
Conversation
@@ -58,7 +58,7 @@ | |||
android:textSize="16sp" | |||
android:visibility="gone" | |||
app:layout_constrainedWidth="true" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer && !viewModel.hasConversationView ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change done which was missed in #3172 but this file will eventually get removed in coming PRs. Just fixed it so that there is no confusion while checking the screenshots.
@@ -90,7 +90,7 @@ | |||
android:textSize="16sp" | |||
android:visibility="gone" | |||
app:layout_constrainedWidth="true" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer && !viewModel.hasConversationView ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change done which was missed in #3172 but this file will eventually get removed in coming PRs. Just fixed it so that there is no confusion while checking the screenshots.
@@ -90,7 +90,7 @@ | |||
android:textSize="16sp" | |||
android:visibility="gone" | |||
app:layout_constrainedWidth="true" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" | |||
app:layout_constraintEnd_toEndOf="@{viewModel.isCorrectAnswer && !viewModel.hasConversationView ? @id/answer_tick_guideline : ConstraintSet.PARENT_ID}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change done which was missed in #3172 but this file will eventually get removed in coming PRs. Just fixed it so that there is no confusion while checking the screenshots.
@@ -18,13 +18,9 @@ | |||
<dimen name="drag_drop_item_question_view_margin_end">64dp</dimen> | |||
<dimen name="drag_drop_item_question_view_margin_start">64dp</dimen> | |||
|
|||
<dimen name="selection_interaction_item_non_conversation_view_margin_end">64dp</dimen> | |||
<dimen name="selection_interaction_item_non_conversation_view_margin_start">64dp</dimen> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed not-required dimens in all files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rt4914
I have one doubt, looking at these screenshots for conversation view, isn't the selection box should have the same margins as that of the question?
So, it's like:
Oppia -> margin x - "Which bird can..." - margin y
User -> margin a - "Penguin" - margin b
Oppia -> margin x - "Try again" - margin y
Oppia -> margin x - Selection dialog - margin y
Currently, it looks like the selection dialog is a user input just by looking at it.
@anandwana001 Actually the current mocks are correct. All interactions are on right-hand-side. This also resonates correctly with the split-view screen (DragAndDrop). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Explanation
Fixes part of #40
Fixes part of #42
This PR does not need to be run and check I have just changed the outer margins for the SelectionInteraction so that the UI looks consistent.
Also I have added comments below for making review simple.
Output
Checklist