Skip to content

Feature/eliminate toasts#279

Draft
zuevval wants to merge 10 commits into
braille-systems:devfrom
zuevval:feature/eliminate-toasts
Draft

Feature/eliminate toasts#279
zuevval wants to merge 10 commits into
braille-systems:devfrom
zuevval:feature/eliminate-toasts

Conversation

@zuevval

@zuevval zuevval commented Oct 3, 2020

Copy link
Copy Markdown
Member

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 penguin-boxx 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
Comment thread app/src/main/res/drawable/to_progress.xml
@zuevval

zuevval commented Oct 3, 2020

Copy link
Copy Markdown
Member Author

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

@penguin-boxx

Copy link
Copy Markdown
Member

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

@penguin-boxx penguin-boxx left a comment

Copy link
Copy Markdown
Member

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.

announce(announcement)
}

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

Copy link
Copy Markdown
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

}

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

Copy link
Copy Markdown
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

}

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

Copy link
Copy Markdown
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

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
Copy Markdown
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

zuevval commented Oct 4, 2020

Copy link
Copy Markdown
Member Author

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.

@penguin-boxx

Copy link
Copy Markdown
Member

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

@penguin-boxx
penguin-boxx 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