Skip to content
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

Feature/eliminate toasts #279

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

zuevval
Copy link
Member

@zuevval zuevval commented Oct 3, 2020

Closes #278

  • TODO fix strings (help messages) + course where the vertical line near the Braille dots is mentioned (because now it's gone)

@zuevval zuevval added enhancement New feature or request lessons Lessons section improvement practice Practice section improvement interface Design and navigation labels Oct 3, 2020
@zuevval zuevval requested a review from winter-yuki October 3, 2020 14:52
@zuevval zuevval marked this pull request as draft October 3, 2020 14:52
@zuevval zuevval linked an issue Oct 3, 2020 that may be closed by this pull request
2 tasks
@zuevval
Copy link
Member Author

zuevval commented Oct 3, 2020

@winter-yuki please add your review. If you agree with changes, I will fix strings and mark this request as ready

@winter-yuki
Copy link
Member

I liked the line on the braille dots background. I think we should not remove it

Copy link
Member

@winter-yuki winter-yuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a strange inconsistency between the animation in the practice and old-style toasts in the theory. It'll be nice to have the same for theory. Maybe without the green part.

I liked the line on the braille dots background. I think we should not remove it.

Also, it will be great to have another BrailleDotsView class without dots to place it on show dots steps.

There is some work for auto reformatting.

@@ -68,6 +72,10 @@ fun Fragment.checkedAnnounce(
announce(announcement)
}

fun Fragment.announceCorrect() = announce(getString(R.string.input_correct))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is Messages.kt file for such kind of things

@@ -88,6 +96,14 @@ fun Fragment.updateTitle(title: String) {
this.title = title
}

fun animateView(obj: View?, colorFrom: Int?, colorTo: Int?) {
val duration = 1000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rathe be const val DURATION = 1000L

@@ -179,14 +178,6 @@ class BrailleDotsView : ConstraintLayout, KoinComponent {
next.accessibilityTraversalAfter = prev.id
}
}

@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
private fun setBackgroundMode(mode: BrailleDotsViewMode) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thing looked good to me. I think it is still useful

@@ -15,6 +14,7 @@
android:layout_marginEnd="@dimen/braille_dots_inner_horizontal_margin"
android:layout_marginBottom="@dimen/braille_dots_inner_vertical_margin"
android:contentDescription="@string/braille_dot_1"
android:text="@string/braille_dot_1_text"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is better to replace with tools:text to prevent blinking.

@zuevval
Copy link
Member Author

zuevval commented Oct 4, 2020

Many thanks for a thorough review. I’ll consider everything. Some I will fix and other I’d maybe like to discuss in a short voice meeting next week if you will have some time, e. g. on Wednesday.

@winter-yuki
Copy link
Member

For such kind of design topics, it is better to call @kaustika

@winter-yuki winter-yuki requested a review from kaustika October 4, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request interface Design and navigation lessons Lessons section improvement practice Practice section improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reduce toast usage
2 participants