Beginning RecyclerView - Part 12: | Ray Wenderlich Videos

See how to create a grid of items with RecyclerView using GridLayoutManager, replacing the need for GridView.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4568-beginning-recyclerview/lessons/12

Why did you use constants in isColorDark … 0,299 0.587 0.114?

Hi @lackorolnik, thanks for the question! That formula for determining if a color is dark or not is something I found online. Here is an example reference:

http://alienryderflex.com/hsp.html

Thanks again!