3

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

4

1 回答 1

0

我不知道这个功能是什么时候发布的,但是在将我的 AndroidStudio 更新到版本 3.1 Canary 8 并从头开始创建一个新项目之后,它对我有用!

在此处输入图像描述 在此处输入图像描述

于 2018-01-20T17:16:35.170 回答