Lists NBA teams, their games and allows to search players. Has infinite scroll capability when showing list of games. Workflow diagram (drawio)
This is a technical task provided by TGlab for Android Developer position. The exact requirements were as follows:
Home page tab
- List following data in a list (full_name, city, conference).
- Tapping each row should navigate to a new bottom sheet view and list all games for the selected team. See Selected Team Data section.
- Tapping Name button should show a dialog where user can select from these order types: Name, City, Conference. Selected value should update the button title and order the list.
- Use this API to get list of NBA teams: https://www.balldontlie.io/api/v1/teams
Selected Team Data
- From Home page Tab user can select a team to see recent games. TEAM ID must be passed to this View and then used here to geta list of games for specific team. User can get back using Back button or via <Home button at the top.
- List following details: (home_team.full_name, home_team_score, visitor_team.full_name, visitor_team_score).
- Implement endless scroll.
- Use this API to get list of Games: https://www.balldontlie.io/api/v1/games?&team&ids[]=TEAM_ID
Search Players Tab
- List data: (first_name, last_name, team.full_name).
- Each row should show player's team data on touch. Reuse previously created Selected Team View.
- Implement Search.
- Use this API to search players by name: https://www.balldontlie.io/api/v1/players?search=PLAYER_NAME
- MVVM architecture pattern
- Kotlin Coroutines
- Koin DI
- Jetpack Navigation