Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Add Number keyboard #5

Open
atabekm opened this issue Sep 28, 2020 · 0 comments
Open

Add Number keyboard #5

atabekm opened this issue Sep 28, 2020 · 0 comments
Assignees

Comments

@atabekm
Copy link
Member

atabekm commented Sep 28, 2020

This issue covers adding a Number keyboard to new transactions screen:
video

You can refer to its previous implementation, which can be found at https://github.com/shagalalab/qarejet-android-old/tree/master/core-widgets/src/main/java/com/shagalalab/qarejet/core/widgets/numberkeyboard. Although, the previous implementation was using MVP, now you need to change it to MVI way. This will be your first "real" experience of working with USF.

Task

Add a Number keyboard to new transactions screen. Pay attention, this task covers only keyboard, but not the transaction amount TextView on top of it. It will have the following details:

  • branch: feature/number-keyboard
  • package location: com.shagalalab.feature.transaction.presentation.numberkeyboard
  • classes to be added: NumberKeyboardView, NumberKeyboardViewModel, NumberKeyboardUsf, layout/view_number_keyboard.xml
  • classes to be modified: Add NumberKeyboardView to NewTransactionFragment, keyboard interaction should be printed to console (print the transaction amount, for example, typing 1 will print 1, then 4 will 14, 9 will 149 and etc). This is temporary solution, it will be changed once we add transaction amount textview.

Acception criteria

  • Layout needs to be implemented with ConstraintLayout
  • Entering numbers will be reflected in console (for now)
  • Pressing back button will remove the previous number (or dot if presents)
  • Pressing dot should convert number to fractions
  • Pressing down arrow expands the keyboard, and up button collapses. This needs to be done using animations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants