1/3

Android Assignment

Using RecyclerView

Please conduct the following tasks alone. For implementation details you can refer to the lecture slides or the Android developer website. Please do not hesitate to ask me or the tutor if you have any questions. Under „Tip“ you can find some hints for the task. The „Checklist“ specifies what should happen when your implementation is correct.

2/3

Tasks

  1. Run Android Studio Example project for RecyclerView
  2. Show items as horizontal list
  3. Show items as vertical grid with 2 colums
3/3

1. Show example RecyclerView Fragment

20%

Checklist
When the app opens, it shows a list of items and give feedback when a item is clicked via Toast

2. Let RecyclerView use horizontal LinearLayoutManager

20%

Tip

Check method signature of LinearLayoutManager and pass necessary parameters

Checklist
When the app opens, it shows a horizontal list of items and give feedback when a item is clicked via Toast

3. Let RecyclerView use GridLayoutManager

20%

Tip

Change mColumnCount value to “2”

Checklist
When the app opens, it shows a vertical grid of items with 2 columns and give feedback when a item is clicked via Toast