How to use AndroidStudio sample resources?

Viewed 68

As presented on Google I/O 2017, the AndroidStudio has now a sample resources type that can reference JSON files (useful to preview lists with different elements on each position).

enter image description here

How do I configure my project to use this new resource? I've attempted to reproduce the code, but it doesn't compile.

enter image description here

The video that presents this new resource is available here: https://www.youtube.com/watch?v=Hx_rwS1NTiI&t=6m48s

1 Answers

I don't know when this feature was released, but after updating my AndroidStudio to version 3.1 Canary 8 and creating a new project from scratch, it worked for me!

enter image description here enter image description here

Related