Vous êtes sur la page 1sur 2

Android Path - Project 1

by Alejandro Gómez, Sr Android Developer 05/11/2020

Problem 1

One of the common features in the major apps is the use of lists. There are horizontal and
vertical, and combination of them, used to show items and help a user to find a specific item,
easily. In Android, lists are very common, and there are an specific library for that, the recycler-
view.
Lets create a context for this problem. An user wants to find an app that shows information
about near stores, with the address and a picture to help him to find some store based on a
category. For example, if he wants to find food, the category "food", shows only the results
associated with this category. Other example is if the user wants to find a notebook and some
school stuffs for her daughter, and he needs to buy some stuffs, the category "stationery" will
be helpful.
Consider the following data model for Stores, as a help for this project:

Listing 1: Store Model for Problem 1


1 data class StoreModel(val id : String = "",
2 val name: String = "",
3 val address: String = "",
4 val pictureUrl: String = "",
5 val categories: List<String> = emptyList())

Rubric

• Application must be created in kotlin.

• Create a list of Stores using a recycler-view. Each item should open a screen with a detail
information in another activity.

• Use the MVVM model, and repossitory pattern.

• Select a library to show the url picture in the items. (Picasso, Glide).

• View Model should be created using ViewModelProvider

Project 1 Page 1
Problem 2

Based on the previous project, try to create a new item at the top of recycler view to show a
horizontal list with all categories. This horizontal list should be scrolleable (hunt: use a horizontal
recycler-view).

Rubric

• Horizontal list of all categories should be added in the same recycler-view created for
proyect 1. Consider to use differents types of items with recycler view.

Notes:

Create this project locally, upload to to a git host is not required yet. Use your creativity to avoid
the default colors and text sizes, play with colors for the ui.

Project 1 Page 2

Vous aimerez peut-être aussi