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

Create MonthView #11

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

Create MonthView #11

atabekm opened this issue Sep 29, 2020 · 0 comments
Assignees
Labels

Comments

@atabekm
Copy link
Member

atabekm commented Sep 29, 2020

This issue covers creating a custom view called MonthView, which will be responsible for navigating between months. You can see in the following short gif what MonthView. Basically, it is a small custom view which will have two buttons on the sides and text in the middle:

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/month. 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

Create a custom view called MonthView. Since this view will also be reused in Stats module as well, we need to put it to core-utils module. It will have the following details:

  • branch: feature/monthview
  • package location: com.shagalalab.core.utils.ui.monthview
  • classes to be added: MonthView, MonthViewModel, MonthUsf
  • classes to be modified: Add MonthView below Toolbar in RecordsFragment
  • libraries to use: joda-time library was used previously, but now we can use https://github.com/Kotlin/kotlinx-datetime

Acception criteria

  • Layout needs to be implemented with ConstraintLayout
  • Pressing < will go to previous month, the month title also should be changed
  • Pressing > will go to next month, the month title also should be changed
  • Year only appended to month when it is not current year. For example, current month will be shown as "October", however next January will be "January 2021", and previous will be "January 2019"
@atabekm atabekm changed the title Create custom view called MonthView, which will be responsible for navigating between months Create MonthView Oct 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants